I have a text string in Oracle table ("NGUYỄN NGỌC HOÀNG"). I have tried to replace the Unicode string (my expected result is "NGUYEN NGOC HOANG") but it didn't work.
Then I tried to convert it to HEX as below: select rawtohex(UnicodeColumn) from TestTable;
Here is the result: 4E 47 55 59 C3 8A CC 83 4E 20 4E 47 4F CC A3 43 20 48 4F 41 CC 80 4E 47
Following the Unicode table: The corresponding characters are: NGUYỄN NGỌC HOÀNG
Could anyone help me this case (Oracle script), I don't have experience about the encoding.
Update 1:
I have tried the solution from Barbaros Özhan but it didn't work
SQL> with tab as ( select '&i_str1' str1 from dual ) 2 select str1, utl_raw.cast_to_varchar2((nlssort(str1,'nls_sort=binary_ai'))) str2 from tab SQL> / Enter value for i_str1: NGUYỄN NGỌC HOÀNG
