D
dphizler
Let me explain.
input_name = 'BinaryDisp1';
input_value = 'Eté';
This is my function:
function change_input_value(input_name,input_value)
{
var newstring = input_value.replace('é','\u00E9');
$(input_name).value = newstring;
}
This is to demonstrate that '\u00E9' isn't the problem:
function change_input_value(input_name,input_value)
{
var newstring = 'Et\u00E9';
$(input_name).value = newstring;
}
It's because of the 'é'
When input_value = 'house', the output is hoése, when I ask to replace
'u' with '\u00E9':
var newstring = input_value.replace('u','\u00E9');
Anybody have any ideas how to fix this.
Thanks
input_name = 'BinaryDisp1';
input_value = 'Eté';
This is my function:
function change_input_value(input_name,input_value)
{
var newstring = input_value.replace('é','\u00E9');
$(input_name).value = newstring;
}
This is to demonstrate that '\u00E9' isn't the problem:
function change_input_value(input_name,input_value)
{
var newstring = 'Et\u00E9';
$(input_name).value = newstring;
}
It's because of the 'é'
When input_value = 'house', the output is hoése, when I ask to replace
'u' with '\u00E9':
var newstring = input_value.replace('u','\u00E9');
Anybody have any ideas how to fix this.
Thanks