Problems with Postgresql (unicode<->sql_ascii)

Author Message

Kai Duebbert

Friday 26 March 2004 2:55:11 am

Hi,

I'm currently working on a site that uses Chinese and English content on Postgresql. Everything was going fine, but now I wanted to copy the database to a new one. So, I created a new UNICODE database and wanted to input the SQL dump, but got many weird errors.

It seems that the database that I used so far was "SQL_ASCII" and not UNICODE how I normally do it. No problems showed and Chinese characters were working. But I can't use the dump to create a new UNICODE database.

Does anyone have any suggestions? I want to dump my old database (SQL_ASCII) and input the contents into the new database (UNICODE), but get many "invalid Unicode" errors.

Any help appreciated!

Kai

George Essig

Friday 26 March 2004 7:54:56 pm

This is strictly a PostgreSQL problem. I remember reading a similar question on a PostgreSQL mailing list. See the following thread:

http://archives.postgresql.org/pgsql-general/2004-02/msg01192.php

George Essig

Kai Duebbert

Saturday 27 March 2004 3:50:23 am

Yeah, I know that it's a Postgresql problem (otherwise I would have filed a bug report). But searching the internet didn't show many results.

Thanks for your link, I will try it and report if I have success.

Kai

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 16:10:53
Script start
Timing: Jan 18 2025 16:10:53
Module start 'layout'
Timing: Jan 18 2025 16:10:53
Module start 'content'
Timing: Jan 18 2025 16:10:54
Module end 'content'
Timing: Jan 18 2025 16:10:54
Script end

Main resources:

Total runtime1.1042 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.0391152.6406
Module start 'layout' 0.00530.0033 740.679739.4766
Module start 'content' 0.00861.0941 780.1563465.8906
Module end 'content' 1.10280.0014 1,246.04698.1250
Script end 1.1042  1,254.1719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2955160.0002
Check MTime0.00140.1280160.0001
Mysql Total
Database connection0.00070.067410.0007
Mysqli_queries1.061596.1319570.0186
Looping result0.00050.0417550.0000
Template Total1.077197.520.5385
Template load0.00190.174320.0010
Template processing1.075197.363320.5376
Template load and register function0.00020.019410.0002
states
state_id_array0.00070.066410.0007
state_identifier_array0.00080.070620.0004
Override
Cache load0.00140.1266170.0001
Sytem overhead
Fetch class attribute can translate value0.00080.076220.0004
Fetch class attribute name0.00100.092330.0003
XML
Image XML parsing0.00020.021820.0001
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00060.0583100.0001
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs