Forums / General / Problems with Postgresql (unicode<->sql_ascii)

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

eZ debug

Timing: Jan 18 2025 11:36:32
Script start
Timing: Jan 18 2025 11:36:32
Module start 'content'
Timing: Jan 18 2025 11:36:33
Module end 'content'
Timing: Jan 18 2025 11:36:33
Script end

Main resources:

Total runtime0.7920 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 589.2656180.8203
Module start 'content' 0.00680.6108 770.0859470.9844
Module end 'content' 0.61760.1743 1,241.0703333.4766
Script end 0.7919  1,574.5469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00770.9695210.0004
Check MTime0.00450.5663210.0002
Mysql Total
Database connection0.00120.152710.0012
Mysqli_queries0.717890.63351940.0037
Looping result0.00210.26451920.0000
Template Total0.761196.120.3806
Template load0.00280.352220.0014
Template processing0.758395.753120.3792
Template load and register function0.00020.028710.0002
states
state_id_array0.00180.231410.0018
state_identifier_array0.00100.127720.0005
Override
Cache load0.00240.2991170.0001
Sytem overhead
Fetch class attribute can translate value0.00290.362930.0010
Fetch class attribute name0.00140.170630.0005
XML
Image XML parsing0.00050.065530.0002
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00220.2747210.0001
String conversion0.00000.000930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 4

Time used to render debug report: 0.0002 secs