• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Problems displaying Chinese in WO application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems displaying Chinese in WO application


  • Subject: Problems displaying Chinese in WO application
  • From: Þór Sigurðsson <email@hidden>
  • Date: Sun, 10 Mar 2013 21:59:46 +0000
  • Thread-topic: Problems displaying Chinese in WO application

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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Problems displaying Chinese in WO application
      • From: Dev WO <email@hidden>
  • Prev by Date: Re: Need Information on Integrating Web Objects with Hibernate
  • Next by Date: Re: Need Information on Integrating Web Objects with Hibernate
  • Previous by thread: Re: 2-way off-line syncing with EOF and CoreData
  • Next by thread: Re: Problems displaying Chinese in WO application
  • Index(es):
    • Date
    • Thread