• 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
Re: Problems displaying Chinese in WO application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems displaying Chinese in WO application


  • Subject: Re: Problems displaying Chinese in WO application
  • From: Dev WO <email@hidden>
  • Date: Mon, 11 Mar 2013 09:04:33 +0100

Hi,

The first thing you could check, is forcing the page to display as UTF-8 in your browser (usually through the View>Text Encoding menu).
If it displays the Chinese text correctly, it means you are missing a configuration somewhere:
-do you have something like <meta http-equiv="content-type" content="text/html;charset=utf-8"> in your page HTML head section?
-Are you using Wonder? (it should default to UTF-8 I think or there's a property for that).

It shouldn't be a big issue, your setup seems pretty much as it should be.

Xavier



> 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


 _______________________________________________
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: Þór Sigurðsson <email@hidden>
References: 
 >Problems displaying Chinese in WO application (From: Þór Sigurðsson <email@hidden>)

  • Prev by Date: Re: Need Information on Integrating Web Objects with Hibernate
  • Next by Date: Re: Problems displaying Chinese in WO application
  • Previous by thread: Problems displaying Chinese in WO application
  • Next by thread: Re: Problems displaying Chinese in WO application
  • Index(es):
    • Date
    • Thread