|
Work with several charsets on web sites is not so simple. Standard Escape
javascript function encodes source data in the source charset, charset of page on which you
run the javascript code.
Especially, if you want to
online create links from one site written
in utf-8 to another site with charset iso-8859-2, you will need some conversion function.
You can also take a look at URL encoder with new charset
sample to test URL in several code pages.
See alsofor 'Special Javascript Escape function for iso-8859-2 charset' article Copyright and use this code
The source code on this page and other samples at https://www.motobit.com/tips/
are a free code, you can use it as you want: copy it, modify it, use it in your products, ...
If you use this code, please:
1. Leave the author note in the source.
or
2. Link this sample from you page.
<A Href="https://www.motobit.com/tips/detpg_javascript_escape_iso_8859_2/" Title="Special Escape function written in Javascript - URL encode (Percent-encoding) with charset conversion." >Special Javascript Escape function for iso-8859-2 charset</A> Do you like it? Rate me on LinkedIn |
© 1996 - 2019 Antonin Foller, Motobit Software | About, Contacts