Forumlar / Cotonti / Development / language issue

url decoding and encoding

ez
#1 2010-04-26 04:03
Hi,

In my url i have got this : %u1045%u1089%u1083%u1080

In php it needs to be translated back to : Если

So I need somekind of urldecode function that does this..
I have looked around and tried several things, but could not find anything working..

hope you can help
==- I say: Keep it EZ -==
booka
#2 2010-04-26 04:28
few years ago I tried to fix it for this plugin: http://www.neocrome.ru/page.php?id=250

it was required to build a UTF -> wcp1251 converter function... but I forgot the solution
booka
ez
#3 2010-04-26 04:33
I need this for the ezchat plugin..

When rooms are made in another language (russian... or something else...)
then this roomname is put on the url via a encode function..
so it turns into %uXXXX characters...

But getting that back, i need the foreign language again.. (Если in my testcase)

There is one catch... all languages should work!

How do I do this ?

==============
I could rewrite the whole damn thing and put an id in stead off a name on the url...
But i am looking for a quick solution.
==============

Added 1 day later:

I have converted the ezchat plugin to use id's... using text on a url was a design
mistake that I made :( good news is, I learned from it

All languages should work now :)

p.s. I will release it soon.. I will ask someone to test it first...

greetz,

ez
==- I say: Keep it EZ -==

Bu konu ez tarafından düzenlendi(2010-04-27 05:32, 14 yıllar önce)