标签: sql oracle unicode hex globalization
我想将Unicode字符串转换为十六进制。
换句话说,我需要将أحمد之类的字符串转换为:
أحمد
0xC3CDE3CF0000000000000000000000000000000000000000000000000000
答案 0 :(得分:1)
尝试:
select rawtohex(convert('أحمد','AR8ISO8859P6','AL32UTF8')) from dual;
Here is a sqlfiddle demo
答案 1 :(得分:0)
select rawtohex(col) from table