BubikolRamios
07-20-2008, 09:59 AM
before I send anything to client I do:
s = s.replaceAll("'č'","Č");
......
how to do opposite, I mean if I send something from client via AJAX I get instead of forinstance 'č' --> 'Ä\u008d' ?
if I do:
s = s.replaceAll("Ä\u008d","č");
it works, but doubt that this is the right way, or is it, furthermore when I save this to database there is '?' instead of 'č'.
note: if input at client contains 'č' then this returns 269.
function test()
{
test = document.getElementById('inputtest').value;
alert (test.charCodeAt(0));
}
s = s.replaceAll("'č'","Č");
......
how to do opposite, I mean if I send something from client via AJAX I get instead of forinstance 'č' --> 'Ä\u008d' ?
if I do:
s = s.replaceAll("Ä\u008d","č");
it works, but doubt that this is the right way, or is it, furthermore when I save this to database there is '?' instead of 'č'.
note: if input at client contains 'č' then this returns 269.
function test()
{
test = document.getElementById('inputtest').value;
alert (test.charCodeAt(0));
}