LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-04-2009, 08:57 PM   #1
mlibot
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, 09:47 PM   #2
Violin
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, 09:56 PM   #3
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
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
 
Old 08-06-2009, 08:21 PM   #4
mlibot
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..
 
  


Reply



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 04:45 AM
convert sql file gb2312 -> utf8 secretlydead Linux - General 7 09-21-2007 09:46 AM
in linux & c/c++: how do I convert an ascii string to utf8 & vice versa? davidh_uk Programming 2 02-06-2005 05:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:43 PM.

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