I have this text:
(我有这段文字:)
var txt = 'u0633u0644u0627u0645'; // ????
and it means: ???? in Arabic.
(它的意思是:????阿拉伯语。)
I need a JavaScript function that will transform this: u0633??? to this: ???? for example:
(我需要一个JavaScript函数来将其转换为:u0633 \ u0644 \ u0627 \ u0645例如:????:)
function convert(str){
// code here that convert each letter to Arabic for example or another decode solution ...
return new_str;
}
var txt = 'u0633u0644u0627u0645'; // ????
console.log( convert(txt ) ); // ????
I search for the problem here but all what I get was server side solutions like PHP encoding functions and MySQL connection encode and HTML meta encode (not work also).
(我在这里搜索问题,但是得到的只是服务器端解决方案,例如PHP编码功能,MySQL连接编码和HTML元编码(也无法使用)。)
ask by max max translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…