bom cl

Discussion of Common Lisp
Post Reply
ninger
Posts: 2
Joined: Mon Aug 18, 2014 7:42 pm

bom cl

Post by ninger » Mon Aug 18, 2014 8:14 pm

I don't know how to skip over byte order marks,who can help me ?(using ccl)
thanks!

pjstirling
Posts: 166
Joined: Sun Nov 28, 2010 4:21 pm

Re: bom cl

Post by pjstirling » Fri Aug 22, 2014 8:01 am

I'm not really clear on what you want. Do you want to write source code with an editor that inserts a BOM, or are you loading text from files that has a BOM?

logxor
Posts: 20
Joined: Tue May 27, 2014 10:56 am
Location: Portland, OR

Re: bom cl

Post by logxor » Sat Aug 23, 2014 2:40 pm

I assume you're working with UTF-16 files? I just tested this, and CCL consumes the BOM—in order to know the endianness—if I give :UTF-16 as the character encoding. If I give an explicit endianness with :UTF-16LE or :UTF-16BE character encoding, then the BOM gets read as just another character.

ninger
Posts: 2
Joined: Mon Aug 18, 2014 7:42 pm

Re: bom cl

Post by ninger » Wed Sep 03, 2014 8:36 am

Sorry,
I read a csv file(utf-8 with bom) by cl-csv ,it can't work well.
THANK YOU!

Post Reply