[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What's the TextEditor rules on what's safe to load?


On Wed, 7 May 2025 at 22:35, Benoît Minisini <
benoit.minisini@xxxxxxxxxxxxxxxx> wrote:

> Le 07/05/2025 à 23:11, Bruce Steers a écrit :
> > Got a guy on the mailing list that likes to complain about TextEditor
> > not supporting some utf-8 chars.
> >
> > I simply explained some time ago when he had a similar issue ...  It's a
> > "text" editor
> >
> > but he's on one again.
> > Saying utf-8 BOM causes an error.
> > https://forum.gambas.one/viewtopic.php?t=2077 <https://forum.gambas.one/
> > viewtopic.php?t=2077>
> >
> > I don't know what to tell him.
> > Could someone explain exactly what TextEditor is built to handle and
> > what not to use, or complain about if it fails?
> >
> > Cheers
> > BruceS
>
> I don't get an error with a file starting with UTF-8 BOM, just an
> invisible character at the beginning of the first line.
>
> Note that BOM is a Windows thing created by moronic developers that did
> not understand UTF-8. BOM is useless in UTF-8, as there is no byte order
> in UTF-8.
>
> Regards,
>
> --
> Benoît Minisini.


Thank you Ben :)

Respects
BruceS

References:
What's the TextEditor rules on what's safe to load?Bruce Steers <bsteers4@xxxxxxxxx>
Re: What's the TextEditor rules on what's safe to load?Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>