Can someone show me a simple ASP script that produces a unicoded webpage? Maybe you could write Hello world in a variety of languages.
Also how can I convert floats to string so that I can produce “2.3” or “2,3” depending on the country the page is being directed to. Does ASP offer functionality for doing this?
Furthermore, how do you convert "A B" to "A B" etc.
Thanks,
Barry
Unicode:
There are two parts in creating a true Unicode (utf-8) page. First you will need to output the data as utf-8. To instruct the web server to use utf-8, put this line at the top of your asp-file.
Secondly, you’ll need to tell the browser which encoding you are using. Put this information the html head tag.
Remember that hard-coded text (in an ASP-file) will be outputted “as is”, therefore save the file as utf-8 on disk.
Localization:
Also how can I convert floats to string so that I can produce “2.3” or “2,3” depending on the country the page is being directed to. Does ASP offer functionality for doing this?
Use LCID to change how dates, numbers, currency etc is formatted. Read more here!
HTML encoding:
Furthermore, how do you convert “A B” to “A B” etc.
This is very easy. Just use Server.HTMLEncode(string)
Example page: