Text data with non-printing characters.

From: Paul Adair (padair@pntsi.ca)
Date: Thu Aug 29 2002 - 11:32:27 EDT


I have a process that receives input (basic mailing information) from a
clients web site.
We then input that into a Sybase database and then a Crystal reports machine
prints form letters from the Sybase data.

The problem that I am having is we now are accepting french mailing
information and some of the characters are not being printed properly at the
end of the process.

When I "cat" the input file the characters show up with a "M-" in front of
them and the character is wrong.
For example I am supposed to have a letter e with an accent on top but it
shows up as "M-i" in my data file.
When the report is run it prints out as a letter o with the ~ on top of it.
It doesn't make sense to me that I have gone from e's to i's to o's?!?!?

I have looked at the man pages for "cat" and "tr" but I am not getting
anywhere.
I have used "cat -v" to force the non-printing characters to show as a "M-"
but I am still looking for a way to then scan and convert those to the
proper characters.

A lot of the information that I am looking as refer to "LC_CTYPE" variable
settings but I have no experience with that.

If anyone has experience handling french or accented characters please
contact me with any suggestions.

Regards, Paul.
padair@pntsi.ca
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:51 EDT