Hello everyone,
How to know if input string is half-width or full-width ?
Regards,
Hi Mai Loc,
Check this post https://www.outsystems.com/forums/discussion/53825/how-to-convert-half-width-character-to-full-width-character/
Luis Oliveira
Hi Mai,
You can use below javascript to find the given input character is a half-width character or a full-width character
str="Chinese;;A" alert(str.match(/[\u0000-\u00ff]/g)) //Half-width alert(str.match(/[\u4e00-\u9fa5]/g)) //Chinese alert(str.match(/[\uff00-\uffff]/g)) //full width
Thanks, Aadhavan S