Re: ANN: H98 FFI Addendum 1.0, Release Candidate 13

Marcin 'Qrczak' Kowalczyk <[email protected]>
Newsgroups gmane.comp.lang.haskell.ffi
Message-ID <1067770477.16094.5.camel@qrnik>
W liście z sob, 01-11-2003, godz. 02:16, John Meacham pisze:

> my implementation converts unrepresentable characters to '?'. But
> a case could be made for throwing a CharsetConversion exception of some
> sort or simply eliding invalid characters. I am not sure what is best,

It depends on the application:

- When displaying email on screen, it's best to transliterate by
  removing accents etc.

- When communicating with a database, it's best to report an error
  so configuration can be fixed (perhaps charsets are wrongly set).

- When converting HTML, it's best to provide a hook to replace
  unrepresentable characters with &#NNNN;

-- 
   __("<         Marcin Kowalczyk
   \__/       [email protected]
    ^^     http://qrnik.knm.org.pl/~qrczak/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.