<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.45">
<TITLE>RE: [Kc] cleaning up unicode?</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>John Reinke wrote:</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> On Mon, 2003-03-03 at 09:15, Garrett Goebel wrote:</FONT>
<BR><FONT SIZE=2>> > > I have a text file which contains a character I am </FONT>
<BR><FONT SIZE=2>> > > guessing as being considered a unicode character.</FONT>
<BR><FONT SIZE=2>> > > It is the letter 'u' with the accent mark over it</FONT>
<BR><FONT SIZE=2>> > > that looks like an apostrophe, which appears in</FONT>
<BR><FONT SIZE=2>> > > some text editors as <FA>.</FONT>
<BR><FONT SIZE=2>[...] </FONT>
<BR><FONT SIZE=2>> > > I'd like to convert any of those characters to be</FONT>
<BR><FONT SIZE=2>> > > regular ASCII characters, most likely with a tr</FONT>
<BR><FONT SIZE=2>> > > command, but I haven't been able to find a way to</FONT>
<BR><FONT SIZE=2>> > > match that character. Any suggestions?</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> > It'd be nice to know what you're actually trying to </FONT>
<BR><FONT SIZE=2>> > accomplish. </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> What I'm trying to accomplish is remove the accent marks</FONT>
<BR><FONT SIZE=2>> from characters, essentially reducing everything down to</FONT>
<BR><FONT SIZE=2>> 7-bit ASCII. Since you're asking, the strings will become</FONT>
<BR><FONT SIZE=2>> file names. I want to create a subroutine that will</FONT>
<BR><FONT SIZE=2>> convert a string to something valid for my file system.</FONT>
</P>
<P><FONT SIZE=2>What file system(s) does the filename need to be valid for?</FONT>
</P>
<P><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>Garrett Goebel</FONT>
<BR><FONT SIZE=2>IS Development Specialist</FONT>
</P>
<P><FONT SIZE=2>ScriptPro Direct: 913.403.5261</FONT>
<BR><FONT SIZE=2>5828 Reeds Road Main: 913.384.1008</FONT>
<BR><FONT SIZE=2>Mission, KS 66202 Fax: 913.384.2180</FONT>
<BR><FONT SIZE=2>www.scriptpro.com garrett@scriptpro.com</FONT>
</P>
</BODY>
</HTML>