Cyrillic fonts in $msg array php

Discussion in 'PHP' started by kalseo, Jul 13, 2009.

  1. #1
    Hi DP members,

    I have a crazy problem, I am trying to find a solution for it.

    I am working on CakePHP project that is holding Cyrillic fonts like this example:

    $msg = array(
    'msg_special_offers' => 'оаяоая',
    'msg_book_some_dates_for' => 'ужаожжго',

    Everything was fine with those fonts, but after a month website lost the encoding information and I can not fix it.

    Does anybody know how I can fix this problem?

    Now I am getting crazy symbols instead of proper string, changing the encoding with Dreamweaver is working, but as soon as I upload files to server, I am getting not correct string again.

    Kind regards
    Kal
     
    kalseo, Jul 13, 2009 IP
  2. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #2
    it's possible the server has changed the default character encoding sent through apache. get firefox and a plugin called live headers - and look what encoding is being sent to the browser. also, try changing the browser encoding manually to a cyrilic one and see if it fixes it, at least you'd know you are on the right track.
     
    dimitar christoff, Jul 13, 2009 IP