Bart,

I read your second paragraph and exclaimed to myself, "Slow down, cowboy!"

Then I read your third paragraph and regained my composure.

Curiously in retrospect, the sentence of mine that you quoted originally read: "By the way, the frequency of occurrence of non-US-ASCII characters in my data is very low..." I changed "my" to "the" before posting. I cannot explain why. Maybe I'm subconsciously averse to claiming ownership of others' data.

The point of my parenthetical remark was just this: In the discrete data with which I'm working, there's a very low proportion of 8-bit characters vis-à-vis the total amount of text. So, for example, the kind of optimization Juerd suggested later really isn't an optimization at all in my specific case. I anticipated the likelihood someone might suggest just such an optimization as his and implied that it would be a false opimization in this instance.

I attended the Internationalization & Unicode Conference 31 last month in San José. I rubbed elbows with likeminded folk from all over the world who share my interest in languages and software globalization. Like you, I'm sensitive to matters of language and culture bias in software and computing. If I didn't care, I wouldn't have had a reason to post this inquiry in the first place. I would have just let the handful of 8-bit characters become mojibake and called it a day.

Jim


In reply to Re^4: Convert Windows-1252 Characters to Java Unicode Notation by Jim
in thread Convert Windows-1252 Characters to Java Unicode Notation by Jim

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.