Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorenser
     
    Hi all!

    I have a problem when I'm using Cyrillic text in local files for example in file mk.php the text $dictionary['Id'] = 'ИД';

    On the screen it doesn't displays correct. Something like "??".

    The problem is i think the text is displayed somehow with encoding "Cyrillic (windows-1251)". When I change the page encoding on the browser to "Cyrillic (windows-1251)" it displays correct.

    So the question is how can i read it from file like utf-8.

    When I'm inserting the same text in DB it is displayed correctly.

    Are there maybe some text helpers or something similar?

    Thanks!
    • CommentAuthorenser
     
    Nobody knows how to help me?
    • CommentAuthorenser
     
    I found the solution.
    You can use something like this:

    iconv('windows-1251', 'utf-8//IGNORE', 'ид');

    I just now will need to find a place where is the best to put this function.