-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,600
  • 28
  • 79
  • 90
Alex Opent
  • 111
  • 1
  • 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,519
  • 2
  • 30
  • 41
0

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

redolent
  • 4,159
  • 5
  • 37
  • 47