To encode and decode using UTF8
UTF8 will encode only UTF8 characters not like base64.
No need to Include any JS file in your project, just add jquery file
Encode:
function decode_utf8(s) {
Ex: alert(encode_utf8("Text�‡‰™©"))
UTF8 will encode only UTF8 characters not like base64.
No need to Include any JS file in your project, just add jquery file
Encode:
function encode_utf8(s) {
return
unescape(encodeURIComponent(s));
}
Decode:
return decodeURIComponent(escape(s));
}
Ex: alert(encode_utf8("Text�‡‰™©"))
Doesnt work.
ReplyDeleteIt works fine to me, congrats!
ReplyDeleteThanks :)
ReplyDeletei find a free online base64 encoder and decoder to convert the base64 string.
ReplyDeleteIt worked fine to encode it using javascript.
ReplyDeleteThanks
ReplyDeleteThanks
ReplyDelete