iilegend 2012-11-23
在查看Apache log时,经常在url里面混杂着%3A,%2F等字符,究竟代表什么?只需通过Oracle自带函数转换下就可。
根据16进制查字符:
select chr(to_number('2F','xx')) from dual --/
select chr(to_number('3D','xx')) from dual --=
select chr(to_number('26','xx')) from dual --&
select chr(to_number('3F','xx')) from dual --?
select chr(to_number('3A','xx')) from dual --:
根据字符查16进制:
select to_char(ascii('/'),'XX') from dual --2F