Chinese Characters to hex

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 1
Joined: Fri Sep 14, 2012 10:32 pm

Chinese Characters to hex

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


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

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.简

Return to “PHP coding => General”

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests