LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How can I remove BOM if I am going convert UTF8 to ASCII (https://www.linuxquestions.org/questions/linux-newbie-8/how-can-i-remove-bom-if-i-am-going-convert-utf8-to-ascii-745163/)

mlibot 08-04-2009 08:57 PM

How can I remove BOM if I am going convert UTF8 to ASCII
 
hi good day.. hope you help me..
im trying to convert utf8 format to ascii and i use native2ascii.exe to convert utf8 to ascii but my problem is.. is still the BOM has not been removed.. what is the best to do..? to remove the BOM..?

Violin 08-04-2009 09:47 PM

I wish to know the answer, too. Currently I use a hex editor to remove or add the BOM manually.

paulsm4 08-04-2009 09:56 PM

Suggestion:

http://www.stanford.edu/~laurik/fsmbook/errata/BOM.html
Quote:

If you look at your UTF-8 file in a text editor such as Emacs, you see that the first character is a strange blob. You can remove it with a Control-D and save the file. Everything should work fine without the BOM.
0xEF 0xBB 0xBF
Two other interesting links:
http://unicode.org/faq/utf_bom.html (search down to "Byte Order Mark (BOM) FAQ")

http://en.wikipedia.org/wiki/Byte-order_mark

'Hope that helps .. PSM

mlibot 08-06-2009 08:21 PM

Good morning Guyz... thanks for the information... i need to do this in php.. but my problem is how to connect this on html.. how to start coding because i do not know how to start and how to connect.. help me guyz..


All times are GMT -5. The time now is 06:55 AM.