|
Posted by Mityok on 04/25/07 16:16
On Apr 24, 2:44 pm, kkadr...@yahoo.com wrote:
> hello group,
>
> I cannot figure out how to use iconv to "normalize" characters
> specific to some language. I need it in file upload where I take a
> file from local disc and then save to server and use in web pages, for
> example, as img source.
>
> What should be the second parameter of the function?
>
> Say,
> iconv('ISO-8859-1', 'ASCII//TRANSLIT', $str);
> works but it gives too much transformed result.
>
> I would like just replace specific chars, like "a acute", "a with
> macron", "a umlaut", with a character without accent.
>
> Andra.
Hello Andra,
Try using
iconv('ISO-8859-1', 'ASCII//IGNORE', $str);
instead of
iconv('ISO-8859-1', 'ASCII//TRANSLIT', $str);
You can find more detailed info at http://www.php.net/manual/en/function.iconv.php
(Note the user's comments they are really useful).
Mityok.
Navigation:
[Reply to this message]
|