Because it transforms charactrs into garbage (sth. like %C4%B1 for ı). And I need human-readable format :)) Anyway. I guess I'll stick to my XML solution. I read mappings from a UTF-8 encoded XML file into arrays and then iterate over them and replace whatever characters I need. I miss PHP's preg_replace :)))
On 8/16/06, OÄuz_Demirkapı <[EMAIL PROTECTED]> wrote: > > Why don't you use URLEncodedFormat? > > > -----Original Message----- > From: Dmitrii Dimandt [mailto:[EMAIL PROTECTED] > Sent: Mittwoch, 16. August 2006 15:33 > To: CF-Talk > Subject: Re: Transform Unicode characters > > I need to create ASCII-only urls. So, if I have name such as yours for > example :), Oßuz Demirkapñ, I want to transform it into oguz_demirkapi > in > order to have a URL like this: http://mysite/users/detail/oguz_demirkapi. > > Actually, I've solved the problem by creating an XML file with all the > required mappings, but my heart yearns for a better solution :) > > > On 8/16/06, Oßuz_Demirkapñ <[EMAIL PROTECTED]> wrote: > > > > I think it is possible when they have a database which has already > Unicode > > support. But if data is saved in old format it is really a headache. > > > > If you explain your full scenario, I would suggest some other methods > > depending on your case. > > > > Oßuz Demirkapñ > > > > > > PS: I have both "dotless i" and "g with breve" in my name. :) > > > :)) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249979 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

