User Tools

Site Tools


php:charset_converter

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
php:charset_converter [2014/01/14 12:43] biggiphp:charset_converter [2015/08/15 22:56] (current) – external edit 127.0.0.1
Line 1: Line 1:
 This is a very specific charset converter, but you should be able to rewrite the code to fit your own needs. It's meant to convert an XML file from UTF-8 to ISO-8859-1, nothing else (well maybe the other way around too, I made support for that anyway). This is a very specific charset converter, but you should be able to rewrite the code to fit your own needs. It's meant to convert an XML file from UTF-8 to ISO-8859-1, nothing else (well maybe the other way around too, I made support for that anyway).
  
-  * NOTE: If you need anything else but XML, you need to change "Content-Type". It should be very easy to automate, I was just too lazy (maybe you can use $_FILES['changeme']['type'] - Please send me the changes if you do fix it).\\ +  * NOTE: If you need anything else but XML, you need to change "Content-Type". It should be very easy to automate, I was just too lazy (maybe you can use $_FILES['convertme']['type'] - Please send me the changes if you do fix it).\\ 
-  * NOTE: I also replace encoding="UTF-8" with encoding="ISO-8859-1" (or whatever charset they chose), so you probably need to uncomment that too.+  * NOTE: In the uploaded file I also replace 'encoding="UTF-8"with 'encoding="ISO-8859-1"(or whatever charset they choose), so you probably need to comment that out.
  
 <code> <code>
php/charset_converter.1389699783.txt.gz · Last modified: 2015/08/15 22:56 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki