OT wrote: > I am trying to display characters other than English on a page using > iui. I used the following charset utf-8 as shown below but it didn't > help.
Setting the charset attribute on the style tag doesn't set the charset for the containing document (it's not even a valid tag on style, I think) > What could be wrong? It's hard for me to know since you didn't specify either the expected result or the actual result. I'm assuming: Expected result: Foreign characters displayed correctly, e.g. 桜 (Should be Japanese 'sakura' if email handles charset properly) Actual result: Incorrect seemingly random characters from latin alphabet (ISO-8859-1) displayed in their place It would be even better if you provided a link to the problem page itself or a 'reduced' [1] page with the same problem. > Any ideas? Make sure foreign characters display correctly in your document without iUI. You could remove the <style> and <script> tags and use some simple HTML like this for your body: <body> <div class="toolbar"> <h1 id="pageTitle">Title</h1> <a id="backButton" class="button" href="#"></a> </div> <ul id="home" title="Music" selected="true"> <li>Nothing</li> </ul> </body> Of course use foreign characters in place of 'Music' or 'Nothing'. Make sure they display correctly in this simple case. You'll need to make sure the encoding on the source file is, in fact, UTF-8 and you may want to include the tag: <meta http-equiv="content-type" content="text/html; charset=utf-8" /> in your header. -- Sean [1] http://webkit.org/quality/reduction.html --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en -~----------~----~----~----~------~----~------~--~---
