note 120188 added to function.ps-hyphenate

From: Date: Sat, 19 Nov 2016 17:28:51 +0000
Subject: note 120188 added to function.ps-hyphenate
Groups: php.notes 
Request: Send a blank email to php-notes+get-207207@lists.php.net to get a copy of this message
The above example does NOT work with German Umlauts (äöü) properly. I had to do the following to make it work. setlocale (LC_CTYPE , "de_DE.iso88591"); # it does not work with "de_DE.utf8" and of course your system should run this locale setting $hyphens = ps_hyphenate($psdoc, utf8_decode($word)); # only our couse if your source code is UTF8 coded for($i=0; $i<mb_strlen($word); $i++) { # to be on the safe side echo utf8_encode($word[$i]); # again only if your code is UTF8 ---- Server IP: 72.52.91.14 Probable Submitter: 87.143.111.231 ---- Manual Page -- http://php.net/manual/en/function.ps-hyphenate.php Edit -- https://master.php.net/note/edit/120188 Del: integrated -- https://master.php.net/note/delete/120188/integrated Del: useless -- https://master.php.net/note/delete/120188/useless Del: bad code -- https://master.php.net/note/delete/120188/bad+code Del: spam -- https://master.php.net/note/delete/120188/spam Del: non-english -- https://master.php.net/note/delete/120188/non-english Del: in docs -- https://master.php.net/note/delete/120188/in+docs Del: other reasons-- https://master.php.net/note/delete/120188 Reject -- https://master.php.net/note/reject/120188 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#207207) next »