Results 1 to 5 of 5

Thread: Encoding - charset , etc

  1. #1

    Default Encoding - charset , etc

    What is the best way to set the encoding to a iphone web/app made with senchatouch to show latin characters?
    Ive already tried a lot of combinations.
    The best was using this on my index.html file:
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
    <script type="text/javascript" src="ext-touch.js" charset="utf-8"></script>

    It works well on desktop safari.
    But when I go on an iphone, it shows those square <?> symbols.

    And when the app shows any alert() message, it doesnt work at all. Neither desktop, neither iphone safari.

    Any tip?

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243

    Default

    We use utf8 in our examples which seems to work fine. Are there any particular issues with utf8 that you are encountering?

    Code:
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

  3. #3

    Default

    Thanks Tommy.
    It is working now even with the alert() messages.
    But I had to put both:
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
    <script type="text/javascript" src="ext-touch.js" charset="utf-8"></script>

  4. #4
    Sencha User
    Join Date
    Sep 2011
    Location
    Sallanches, France
    Posts
    371

    Default

    Hello, encoding work for you?
    Because a tested your method, adding

    Code:
    <script src="lib/SenchaTouch/sencha-touch.js" type="text/javascript" charset="utf-8"></script>
    and for each items, and added:
    Code:
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    at the beginning of my application, but nothing, always a problem with accent....
    Did you do another thing?

  5. #5
    Sencha User
    Join Date
    Sep 2011
    Location
    Sallanches, France
    Posts
    371

    Default

    Thanks sorry, resolved

Similar Threads

  1. Json Charset/Encoding-Problem: null
    By Cassio11 in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 28 Jan 2010, 8:12 AM
  2. Taskbar charset encoding
    By higorvaz in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 14 Jul 2009, 12:30 PM
  3. Charset encoding in form and grid
    By Pachat in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 28 Nov 2008, 5:39 AM
  4. [SOLVED] charset encoding problems
    By galdaka in forum Ext 2.x: Help & Discussion
    Replies: 11
    Last Post: 6 Jun 2007, 8:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •