Xml special characters and xlate

Fairlight fairlite at fairlite.com
Tue Oct 2 14:48:06 PDT 2007


Only Walter Vaughan would say something like:
> Fairlight wrote:
>
> > 1) HTML and XML follow the same rules.  They don't.  HTML is far
> > looser, and while many entities may be held in common, they aren't
> > guaranteed to be identical lists.  How well is TOHTML documented in
> > what it alters?
>
> UTF-8 characters are the only thing *I* have found that it doesn't make
> xmllint nor the java import libraries happy.

The solution is simple:  encoding="iso-8859-1"

Don't -use- UTF-8.  Don't allow it.  It's not like fP can handle it
natively anyway, so as part of setting up the XSD or even informal specs,
just wholly mandate encodings that aren't problematic.

Sorry, I'm just frustrated.  -You- probably know what you're doing, and
maybe you had no choice but to play ball with someone on it.  I have run
into many people here domestically that don't even remotely need UTF-8,
don't want the headaches that come with it, can't use it with fP -anyway-,
and nobody would be sending unicode anyway--and they use it as the encoding
for their XML because, "That was what the example in the book used.  I
don't know what it means!"

I kid you not.  They don't even know what it implies, they just parrot the
encoding attribute, cross their fingers, possibly genuflect, and think it's
fine unless/until it blows up on them because their own encoding rules
allow someone to do something they don't expect.

Learning from books and examples:  Great!  Done it all my life.  Won't stop.

Learning half-arsedly from books and examples, producing unexpected
results, then wondering why?  Not so great.

I refuse to write anything with the possibility of UTF-8 unless the project
requirements absolutely mandate it, or I'm specifically told to and have
been given a valid reason.  I default to 8859-1.

mark->
-- 
Most people think the defining traits of human beings are intelligence,
speech, writing, or creativity.  The sad reality is that the most singular
defining quality of humanity is cruelty.  No other species appears to be so
able and willing to inflict pain on its brethren for no logical reason.


More information about the Filepro-list mailing list