PDA

View Full Version : Encoding - charset , etc



Pablo Cabana
5 Jul 2010, 2:22 PM
What is the best way to set the encoding to a iphone web/app made with senchatouch to show latin characters?
I´ve 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?

TommyMaintz
6 Jul 2010, 1:01 PM
We use utf8 in our examples which seems to work fine. Are there any particular issues with utf8 that you are encountering?



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

Pablo Cabana
6 Jul 2010, 1:39 PM
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>

myput
2 Nov 2011, 7:06 AM
Hello, encoding work for you?
Because a tested your method, adding


<script src="lib/SenchaTouch/sencha-touch.js" type="text/javascript" charset="utf-8"></script>
and for each items, and added:


<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?

myput
2 Nov 2011, 8:23 AM
Thanks sorry, resolved