Welcome Guest, Not a member yet? Register   Sign In
How to UTF-8 Encode an URI?
#1

[eluser]developer10[/eluser]
I needed to add some characters to allowed characters whitelist (š,ž,č,ć,đ), but unfortunately these
characters are not properly encoded (by UTF-8) when pulled from URI, so my sql query end up with a strange
black diamond-shaped character with a question mark in the middle of it, in words where normally should any of these
characters be.

For example (word "pričati" - "to talk"):
Code:
... WHERE activity = 'Pri�ati' AND ...

As you can see, all i need is to have these caharacters utf-8 encoded, and my sql query will hopefully be able to retrieve
proper rows.

suggestions?


Messages In This Thread
How to UTF-8 Encode an URI? - by El Forum - 07-12-2009, 03:22 AM
How to UTF-8 Encode an URI? - by El Forum - 07-12-2009, 08:53 AM
How to UTF-8 Encode an URI? - by El Forum - 07-12-2009, 09:03 AM
How to UTF-8 Encode an URI? - by El Forum - 07-12-2009, 09:08 AM
How to UTF-8 Encode an URI? - by El Forum - 07-12-2009, 09:50 AM
How to UTF-8 Encode an URI? - by El Forum - 07-12-2009, 10:02 AM
How to UTF-8 Encode an URI? - by El Forum - 07-14-2009, 06:07 AM
How to UTF-8 Encode an URI? - by El Forum - 07-14-2009, 06:09 AM
How to UTF-8 Encode an URI? - by El Forum - 07-14-2009, 06:15 AM
How to UTF-8 Encode an URI? - by El Forum - 07-14-2009, 06:17 AM
How to UTF-8 Encode an URI? - by El Forum - 07-14-2009, 06:25 AM
How to UTF-8 Encode an URI? - by El Forum - 07-14-2009, 06:26 AM
How to UTF-8 Encode an URI? - by El Forum - 07-14-2009, 06:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB