Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

Chinese Characters to hex

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Chinese Characters to hex

Postby matthewl » Fri Sep 14, 2012 10:39 pm

Hi,

I'm trying to convert a string containing chinese characters to hex using PHP.

example:
t = 0x74
e = 0x65
s = 0x73
t = 0x74
简 = 7B80
test简 = 0x740x650x730x747B80

e.g. if the string was test简, the output should be 0x740x650x730x747B80

I'm using the GET function to set the string. e.g. website.com/test.php?string=test简
matthewl
New php-forum User
New php-forum User
 
Posts: 1
Joined: Fri Sep 14, 2012 10:32 pm

Return to PHP coding => General

Who is online

Users browsing this forum: Google [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.