|
Cookbook /
UTF8ConvSummary: A recipe to help with the convertion of different encodings to UTF-8
Version: 2008-12-29
Prerequisites: was tested with 2.2.0-beta68, but will probably work with all versions
Status: alpha, abandoned
Maintainer: CarlosAB
Discussion: UTF8Conv-Talk
This recipe was abandoned as it is not PmWiki especific and because there are better examples out there.Here are some examples: https://github.com/splitbrain/dokuwiki/blob/204d9c533d983cce1a75f12ef218a92b01961d46/inc/utf8.php http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/normal/(approve links) DescriptionThis recipe converts user input in all encodings made available by the mbstring php extension and some with iconv to UTF-8. NotesI was having problems with mixed encodings in pagenames and text and so I decided to have an UTF-8 only pmwiki site. With this recipe it doesn't matter what encoding you use for pagename or user submitted text, it will be converted to UTF-8, as long as you convert the input with this recipe. The recipe uses something like this Some functions were taken from the excellent package called php-utf8 from Henri Sivonen. If some character doesn't get converted to UTF-8 it will be striped from pagename AND content. You have been warned! Release NotesIn local/config.php just do the usual and load the recipe from the previously unzipped utf8conv.php in ./cookbook/, with a include_once(" DownloadDOWNLOAD: utf8conv.php.gzΔ
I hope this helps you keep your pmwiki site UTF-8 clean and if you have any suggestions, bugs, improvements please let me know. ChangelogJanuary 02, 2009, at 06:41 PM
January 05, 2009, at 08:58 AM
so different systems can benefit.
See AlsoCookbook.UTF-8 and PmWiki.UTF-8. ContributorsCarlosAB December 29, 2008, at 06:49 AM CommentsSee discussion at UTF8Conv-Talk User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki. |