UTF8 Format and Dreamweaver

Discussion in 'PHP' started by misohoni, Jun 30, 2006.

  1. #1
    I've created PHP files with Chinese characters inside the code. I encoded the file in Modify/Page Properties/Title Encoding, and when I save and upload the files, fine no problem - they display on the site.

    However, if I reopen the file again in DW MX the Chinese has changed to squiggles. If I upload that file, then the squiggles appear on the site.

    I thought it was that the document wasn't defined as UTF8, however when I open the file in Textpad - the Chinese characters are fine!

    I guess something's wrong with DW, is there some free software to declare Encoding in a PHP document properly?
     
    misohoni, Jun 30, 2006 IP
  2. reza56

    reza56 Active Member

    Messages:
    92
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #2
    Which version do you use? I work with DW 2004 and I have no problem with Persian characters.
     
    reza56, Jun 30, 2006 IP
  3. misohoni

    misohoni Notable Member

    Messages:
    1,717
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    200
    #3
    Is DW MX. I tried to convert the PHP via Zendstudio so to declare the UTF8 characters, but that didn't work also when I reloaded it in DW...must be a bug...
     
    misohoni, Jun 30, 2006 IP
  4. mgrohan

    mgrohan Active Member

    Messages:
    671
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    58
    #4
    I use DW MX fine with Chinese Characters - although i have trouble in a lot of other apps. What version/language windows are you using?
     
    mgrohan, Jun 30, 2006 IP
  5. misohoni

    misohoni Notable Member

    Messages:
    1,717
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    200
    #5
    Oh glad it's working for you! Actually, on some php files the Chinese characters stay in the file (If you change the headers to utf8, they stay that way). Although the most recent file won't save the utf8 declaration...

    My version on Windows is XP and have the relevant fonts installed also...

     
    misohoni, Jun 30, 2006 IP