WebCab.de: Character set

Home: WAPstacles: Character set

Character set

If you use non-US-ASCII characters in your WML decks, then you should always declare the appropriate character set to be used by the WAP gateway and WAP browser. Even if you don't have problems with all WAP gateways and all WAP browers you should also take care of the restrictive gateways and browsers.

We suggest to set the character set in the XML declaration.

Wrong:

1 <?xml version="1.0"?>
2 <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
3 <wml>
4 <card title="WebCab.de">
5 <do type="prev" label="Back"><prev/></do>
6 <p>German umlauts: , , , , , </p>
7 </card>
8 </wml>

Right:

1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
3 <wml>
4 <card title="WebCab.de">
5 <do type="prev" label="Back"><prev/></do>
6 <p>German umlauts: , , , , , </p>
7 </card>
8 </wml>

[ < Prev ] [ Next > ]

© 2000-2017 WebCab.de TM, Contact