search for: mb_detect_encoding

Displaying 1 result from an estimated 1 matches for "mb_detect_encoding".

2010 Jun 09
1
TermGenerator incorrectly tokenizes German text which contains special characters
...gserganzungsmittel, ausrei?er, nahrungserg?nzungsmittel}). When I force *$lSomeStringFromDb* to be in UTF-8 encoding the tokens are also incorrect. *$lSomeStringFromDb* can either come from the database or from MemCache. I checked the character encoding of the different inputs with the PHP-method: mb_detect_encoding. Strings containing special characters have encoding UTF-8, string which not contain special characters are detected as ASCII. The string from #7 is detected as UTF-8. * mb_detect_encoding("Nahrungserg?nzungsmittel Ausrei?er") => UTF-8 mb_detect_encoding("Nahrungserganzungsmittel...