Hi all,
I'm writing an application that is translated into Icelandic, English and
Chinese.
I have a PostgreSQL database, defined as such:
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------+-------+----------+---------+-------+-------------------
thor | thor | UTF8 | is_IS | is_IS |
I have _all_ of my project set to use UTF-8 as well.
A sample of the database translation strings is as such:
thor=# select * from onlanguagetranslations where key='log_in';
id | lang | key | translation
----+------+--------+-------------
25 | 1 | log_in | 24
26 | 2 | log_in | 25
27 | 3 | log_in | 26
(3 rows)
and
thor=# select * from onlanguagetranslationentry where translationid in (24, 25,
26);
id | revision | revisiondate | translation | translationid
----+----------+---------------------+-------------+---------------
26 | 1 | 2013-03-10 00:00:00 | Log In | 24
27 | 1 | 2013-03-10 00:00:00 | Innskrá | 25
28 | 1 | 2013-03-10 00:00:00 | 身份登录 | 26
(3 rows)
The database is clearly correct ( I can dump it to a file and edit in a editor
- SubEthaEdit - which identifies it as UTF8)
I use a component which display part ( html ) is simply "<wo:str
value="$translation" parseHTML="false"/>" and the translation function reads
the language translation based on an input key and the session language setting.
When I display the output in a browser, the English translation shows fine ( no
wonder..), the Icelandic one does also show just fine, but the Chinese one only
shows "????" instead of "身份登录".
Does anyone know some magic trick I may perform, sans sacrificing a goat or my
firstborn.. ?
Thanks in advance,
Þór
________________________________
Fyrirvari á tölvupósti / e-mail disclaimer
http://us.is/fyrirvari
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]