Click to See Complete Forum and Search --> : UTF8 encoding in PHP


longy
04-08-2008, 07:53 AM
Hello,

I'm not a php developer, but I have the following problem related to PHP:
I try to send some data (string) to a php site using POST method.

I first encode my string data into UTF8 and then send it.
but I suspect that my encoding routines work in a different way than the PHP functions, so PHP site receives different string data than the original one (before I encode them into UTF8).

I don't have PHP installed and configured on my PC, because I don't use PHP at all, so please, ca someone do me a favour and post some dumps here.
Thanks in a dvance.
Here are the dumps I need - I need to see how PHP would utf8_encode the following string data (5 variants of data - latin and cyrillic and mix of both):

1) latin - "test"
2) cyrillic - "тест"
3) mixed1 - "test/тест"
4) mixed2 - "тест/test"
5) mixed3 - "ляtiтю"

I need to see the byte sequence:
for example:
test => [116][101][115][116]

thanks again
Best Regards
Ivan