Jump to content


Photo

Converting ISO 8859-1 to UTF-8


  • Please log in to reply
1 reply to this topic

#1 Christiane

Christiane

    Etomite Forum Fan

  • Member
  • Pip
  • 124 posts

Posted 27 June 2009 - 12:21 PM

My page is coded in ISO 8859-1 .
Now i want to include some RSS-Feeds. But all Feeds are coded in UTF-8.


Question: Is there a simple way, to change in the content-files and so on the german umlauts to the equivalent substitution in the content-files ?
By hand this work is unfeasible, because there are about 150 documents to change.
Otherwise can this done by a snippet, which opens database, calls recursive all content-/description-/title-/...-entries and then substitutes the characters by comparison?

character substitution
ä by ä
Ä by Ä
ö by ö
Ö by Ö
ü by ü
Ü by Ü
ß by ß

Edited by Christiane, 27 June 2009 - 12:51 PM.


#2 Christiane

Christiane

    Etomite Forum Fan

  • Member
  • Pip
  • 124 posts

Posted 29 June 2009 - 10:01 AM

Done.

I did it in a perhaps complicated way, because i'm not well grounded in programming php:
1. dumping the content-entry and so on...,
2. editing and replacing the characters with notepad++,
3. reloading into the database.

Deviating from my path I'm thinking, that it could be a common problem, to convert tables with special characters (other languages) in a light way that and it could be for interest for programmers, to write a snippet.

Edited by Christiane, 29 June 2009 - 10:02 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users