-1

I am building an HTML5 app that works with iPhone and Android. When I display text in this form:

"the number is between 10%-15% 2. the number between 25%-35% 3.the number between 25%-35%...." 

In Android I see it as entered correctly, but in iPhone I see this

"the number is between 10%-15 2.%"

Any ideas how to fix it?

j0k
  • 22,303
  • 28
  • 77
  • 86
Alex Opent
  • 111
  • 13

2 Answers2

0

You have not given us a lot to go on but I would investigate the possibility that the encoding of the text is not compatible with iOS (is the file UTF-8 encoded for example). The other possible issue is that the text you display above is being treated as URL encoded.

Read here:

UTF-8 vs. Unicode

What are the characters that stringByAddingPercentEscapesUsingEncoding escapes?

Community
  • 1
  • 1
ktamlyn
  • 4,274
  • 2
  • 25
  • 40
0

Try the number is between 10%%-15%% 2. the number between 25%%-35%% 3.the number between 25%%-35%%

redolent
  • 3,957
  • 5
  • 34
  • 43