Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-04-2009, 09:57 PM   #1
LQ Newbie
Registered: Jul 2009
Posts: 16

Rep: Reputation: 0
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..?
Old 08-04-2009, 10:47 PM   #2
LQ Newbie
Registered: Oct 2008
Location: Wuhan, China
Distribution: Arch Linux
Posts: 11

Rep: Reputation: 1
I wish to know the answer, too. Currently I use a hex editor to remove or add the BOM manually.
Old 08-04-2009, 10:56 PM   #3
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
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: (search down to "Byte Order Mark (BOM) FAQ")

'Hope that helps .. PSM
Old 08-06-2009, 09:21 PM   #4
LQ Newbie
Registered: Jul 2009
Posts: 16

Original Poster
Rep: Reputation: 0
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..


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
convert file from UTF8 to ASCII encoding graemef Programming 8 12-15-2008 05:45 AM
convert sql file gb2312 -> utf8 secretlydead Linux - General 7 09-21-2007 10:46 AM
in linux & c/c++: how do I convert an ascii string to utf8 & vice versa? davidh_uk Programming 2 02-06-2005 06:55 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:36 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration