UTF-8, Internet explorer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • johny10151981
    Top Contributor
    • Jan 2010
    • 1059

    UTF-8, Internet explorer

    Hi,
    I have a real annoying problem
    I am calling a PHP page to upload image file using Ajax. According to the status of image uploading various message is being replied by that individual php file. a sample of a status is given below:
    Code:
    echo "<error_message>ファイルが大きすぎます。</error_message>";
    In the Ajax response the above message will appear. It was working fine till yesterday. But today when i added few more line the file somehow got corrupted. The message appear but broken
    Code:
    ファイルが大きすぎます。</error_message>
    like this. Then for the test purpose I have removed all the Japanese character and replace with simple
    Code:
    echo "<error_message>error_1</error_message>";
    But still having the same problem. Interesting is this is not a problem in Mozilla Firefox. but its acting wrong in IE. And I must have make it work in IE(user demand).

    To built this page I have used Notepad++. Encoding technology is UTF-8(not UTF-8 without BOM).
    ->what is the difference between UTF-8 and UFT-8 Without BOM
    -> which one is better
    Please inform me :)

    Best Regards,
    Johny
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    ->what is the difference between UTF-8 and UFT-8 Without BOM
    -> which one is better
    1) the BOM (&#38;#FEFF;) is a control character that indicates an UTF-8 encoded file, even if the encoding is unknown

    2) UTF-8 w/o BOM, otherwise you’re likely to run in "header already sent" errors


    did you check the AJAX response manually (calling the PHP file in the browser)? what does Firebug say to the AJAX response?

    Comment

    • johny10151981
      Top Contributor
      • Jan 2010
      • 1059

      #3
      The program work fine in Firefox, get perfect result but making problem in ie. but I will check in IE.

      Comment

      Working...