|
Posted by stefaniefauconnier on October 31, 2007, 7:07 pm
Please log in for more thread options You ask me why? Well, I wrote those HTML files for someone who uses
them with some kind of search engine. This search engine can only
handle numeric character reference. I know this is weird, but that's
the way it is. So I need to convert the utf-8 symbols in my HTML files
to numeric character reference. I do know this means that the files
will become more difficult to read etc, but it doesn't matter at all.
I managed to solve the problem by downloading the Unicode Converter
add-on for Firefox.
> Scripsit stefaniefauconn...@gmail.com:
>
> >> To see the Unicode code points, use an hex editor.
> >> Do you want to convert these characters to HTML character references
> >> such as &#N; where N is a number in decimal notation?
>
> > yes, I do...
>
> Why? There's always someone who rewrites working code, to clean it up, or to
> speed it up, or (as here?) just to recode it. Here it would increase the
> amount of bytes needed to represent a Greek character, though it would be
> more serious that the HTML code would become tedious to read and change.
>
> I can imagine a few cases where the recoding might make sense, but I can
> also imagine many cases where people want that for no good reason and just
> cause confusion. Remember that in any such change, there's the risk of
> messing things up, even if the conversion is as such trivial.
>
> (My guess is that you would do the recoding in order to be able to work with
> the files using an editor that cannot handle UTF-8. In that case, you should
> have stated that and perhaps asked the right question "How can I find a
> UTF-8 capable editor for my ... system?" - in the right group.)
>
> --
> Jukka K. Korpela ("Yucca")http://www.cs.tut.fi/~jkorpela/
|