This application talks to reservation systems, some of them accept utf8 but some others -really old- only accept ASCII.

I think that, rather than considering how to turn UTF8 into ASCII, the real problem you're facing is how to send your data to those "really old" systems in ways that they would find acceptable and readable. Some years ago, I did some work for a medical data processing company that had a very similar problem/question that they were trying to solve. The "solution" they had been trying to implement was a single "unified" format for everything (they'd spent a couple of years on this already, lost a number of customers, and weren't much further along than where they started.) My answer, though it sounded inefficient, was to simply forward all the "acceptably-formatted" data to the companies that could use it, and write custom converters for each of the rest. We were done in just under two months, and handled every single format (yes, it was done in Perl. :)

In short, I suggest that you send the UTF8 data to the companies that are happy with it, then contact the ones that only accept ASCII and get the precise definition of how they want those issues handled (obviously, they have some way of doing so - and more importantly, have already decided how those issues are to be handled in their case, meaning that you don't have to reinvent that wheel.) Write the necessary converters for those cases, and send that data to those companies. Done deal.


--
"Language shapes the way we think, and determines what we can think about."
-- B. L. Whorf

In reply to Re: (OT) How to deal with non-ascii names by oko1
in thread (OT) How to deal with non-ascii names by bluescreen

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.