![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| PHP PHP for some can be one of the hardest website programming codes, so do you need help on your PHP script, if it is php4, php5 or lower this is the place for you for any PHP help. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| thank you, I will stay now with $str = iconv('ISO-8859-1', 'ASCII//IGNORE', $str); Disappointingly that there is not such a function that would convert language-specific characters to their ascii look-alikes. For me it does not matter so much that it is not the same and more correct representation would be specific for each language and so on so on... I just need filenames to be used without problems and recognizable to the author. > > 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. > > If there aren't a character that is the same in the two character setups, you > loose the characters, aring isn't the same as a, even if they may look like > the same and it's why it won't be represented in an ASCII character setup. > > If you want to replace a character with a completely different one, then you > need to use ereg_replace or similar functions. > > It's always a bad idea to convert a string to a less representative character > setup and ASCII is the bottom. > > -- > > //Aho | |||
| Featured Websites | ||||
|
![]() |
| Tags: characters, iconv, language, specfic, strip |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Is Java stronger language then PHP? | mayank | PHP | 6 | 05-04-2006 9:43 PM |
| Featured Websites | ||||
|