473,382 Members | 1,786 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

UTF-8, Internet explorer

1,059 1GB
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:
Expand|Select|Wrap|Line Numbers
  1. 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
Expand|Select|Wrap|Line Numbers
  1. ファイルが大きすぎます。</error_message>
like this. Then for the test purpose I have removed all the Japanese character and replace with simple
Expand|Select|Wrap|Line Numbers
  1. 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
Jun 29 '10 #1
2 3391
Dormilich
8,658 Expert Mod 8TB
->what is the difference between UTF-8 and UFT-8 Without BOM
-> which one is better
1) the BOM (&#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?
Jun 29 '10 #2
johny10151981
1,059 1GB
The program work fine in Firefox, get perfect result but making problem in ie. but I will check in IE.
Jun 29 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: lawrence | last post by:
Someone on www.php.net suggested using a seems_utf8() method to test text for UTF-8 character encoding but didn't specify how to write such a method. Can anyone suggest a test that might work?...
3
by: aa | last post by:
Is it OK to include an ANSI file into a UTF-8 file?
4
by: Alban Hertroys | last post by:
Another python/psycopg question, for which the solution is probably quite simple; I just don't know where to look. I have a query that inserts data originating from an utf-8 encoded XML file....
12
by: Mike Dee | last post by:
A very very basic UTF-8 question that's driving me nuts: If I have this in the beginning of my Python script in Linux: #!/usr/bin/env python # -*- coding: UTF-8 -*- should I - or should I...
38
by: Haines Brown | last post by:
I'm having trouble finding the character entity for the French abbreviation for "number" (capital N followed by a small supercript o, period). My references are not listing it. Where would I...
48
by: Zenobia | last post by:
Recently I was editing a document in GoLive 6. I like GoLive because it has some nice features such as: * rewrite source code * check syntax * global search & replace (through several files at...
6
by: archana | last post by:
Hi all, can someone tell me difference between unicode and utf 8 or utf 18 and which one is supporting more character set. whic i should use to support character ucs-2. I want to use ucs-2...
7
by: Jimmy Shaw | last post by:
Hi everybody, Is there any SIMPLE way to convert from UTF-16 to UTF-32? I may be mixed up, but is it possible that all UTF-16 "code points" that are 16 bits long appear just the same in UTF-32,...
10
by: Jed | last post by:
I have a form that needs to handle international characters withing the UTF-8 character set. I have tried all the recommended strategies for getting utf-8 characters from form input to email...
23
by: Allan Ebdrup | last post by:
I hava an ajax web application where i hvae problems with UTF-8 encoding oc chineese chars. My Ajax webapplication runs in a HTML page that is UTF-8 Encoded. I copy and paste some chineese chars...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.