| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
  [2007-09-13 10:20 UTC] bolk at lixil dot ru
 Description:
------------
If LANG enviroment variable set in en_US stem_russain doesn't works properly. Than I set it in en_US.UTF8 it works fine.
Reproduce code:
---------------
echo stem_russian('russian word in KOI-8R');
Expected result:
----------------
cutted word
Actual result:
--------------
word is corrupted
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 09:00:01 2025 UTC | 
Try to run: LANG=en_US php -r ' $word = "Форумов"; file_put_contents("a.txt", stem_russian($word)); ' "Форумов" must be in KOI-8R. In file "a.txt" I see "ФОРУМОв" instead of "Форум". What is encoding use stem_russian_unicode? USC-2BE?