<html><head></head><body bgcolor="#FFFFFF"><div>use Encode;</div><div><br></div><div>Then:</div><div><br></div><div>encode_utf8</div><div><br></div><div>Remember to set the character set<br><br>Francisco</div><div><br>On Feb 9, 2012, at 1:08 PM, Richard Reina <<a href="mailto:gatorreina@gmail.com">gatorreina@gmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>I tried but when I do:<br><br>  Data => encode("utf8", $body),<br><br>I get:<br><br>Undefined subroutine &main::encode called at test_MIME_mail.pl line 8.<br><br><div class="gmail_quote">2012/2/9 Francisco Obispo <span dir="ltr"><<a href="mailto:fobispo@isc.org">fobispo@isc.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Ah!,<br>
well, just make sure you set your quoted-printable and UTF-8, you might want to read:<br>
<br>
<a href="http://www.databasesandlife.com/using-utf-8-and-unicode-data-with-perl-mimelite/" target="_blank">http://www.databasesandlife.com/using-utf-8-and-unicode-data-with-perl-mimelite/</a><br>
<br>
regards,<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
On Feb 9, 2012, at 12:50 PM, Richard Reina wrote:<br>
<br>
> Thanks for the replies.  I think we're getting down to the crux of the issue.  Ultimately, what has to happen is that I have to get the ™ into text emails that our sent out by a script using mime::lite.  This is proving to be daunting for me any help would be greatly appreciated.<br>

><br>
><br>
> 2012/2/9 Dodger <<a href="mailto:el.dodgero@gmail.com">el.dodgero@gmail.com</a>><br>
> Moreover even if he changes the character set so it displays right in his viewer or editor, if that file is supposed to be used by someone else in a different environment that may expect a different charset it won't work.<br>

><br>
> Perl can't help that. About the only way around it is using some format like XML in which the character set can be explicitly specified.<br>
><br>
> Sent from my iPhone<br>
><br>
> On 09/02/2012, at 9:26 AM, Francisco Obispo <<a href="mailto:fobispo@isc.org">fobispo@isc.org</a>> wrote:<br>
><br>
> > exactly.<br>
> > It's how you interpret it, as long as it is the right character.<br>
> ><br>
> > Francisco<br>
> ><br>
> ><br>
> > On Feb 9, 2012, at 12:22 PM, Dodger wrote:<br>
> ><br>
> >> It seems to me the problem isn't printing any given character into a file but, rather, whatever is being used to display the file not rendering the right character.<br>
> >><br>
> >><br>
> >> Sent from my iPhone<br>
> >><br>
> >> On 09/02/2012, at 8:35 AM, Francisco Obispo <<a href="mailto:fobispo@isc.org">fobispo@isc.org</a>> wrote:<br>
> >><br>
> >>> you need to check your encoding to make sure that they match, and if they don't set them properly.<br>
> >>><br>
> >>> LANG="en_US.UTF-8"<br>
> >>><br>
> >>> or any other UNICODE-compatible encoding.<br>
> >>><br>
> >>> It is generally a bad idea to rely on it because it if clients don't understand UNICODE they will see whatever character correspond to their table… and believe me, it's even worse when the client doesn't support multi-byte characters (in general).<br>

> >>><br>
> >>> Francisco<br>
> >>><br>
> >>> On Feb 9, 2012, at 8:27 AM, Richard Reina wrote:<br>
> >>><br>
> >>>> Hi Franisco, Your suggestion as well as print chr('8482') works.  However, it only works on my Ununtu Machines that are running Xwindows.  When I try it on a Centos machines in console mode it prints the circled "r" for registered trademark.  Would anyone know why this is and how to get the TM to print on a Centos machine?<br>

> >>>><br>
> >>>><br>
> >>>><br>
> >>>> 2012/2/8 Francisco Obispo <<a href="mailto:fobispo@isc.org">fobispo@isc.org</a>><br>
> >>>> Actually in UTF-8 its: 8482<br>
> >>>><br>
> >>>><br>
> >>>> perl -e 'use Encode; map { printf(qq{char %d is: %s\n},$_,encode_utf8(chr($_)))} (8482)'<br>
> >>>><br>
> >>>><br>
> >>>> <a href="http://www.fileformat.info/info/unicode/char/2122/index.htm" target="_blank">http://www.fileformat.info/info/unicode/char/2122/index.htm</a><br>
> >>>><br>
> >>>><br>
> >>>><br>
> >>>><br>
> >>>><br>
> >>>> On Feb 8, 2012, at 6:42 PM, Francisco Obispo wrote:<br>
> >>>><br>
> >>>>> I was hoping it would show up in the table.<br>
> >>>>><br>
> >>>>><br>
> >>>>><br>
> >>>>> On Feb 8, 2012, at 6:36 PM, Richard Reina wrote:<br>
> >>>>><br>
> >>>>>> I don't know whether it is or not. I was hoping it was because I have to find a way to print it.<br>
> >>>>>><br>
> >>>>>> 2012/2/8 Jeff Bragg <<a href="mailto:jackofnotrades@gmail.com">jackofnotrades@gmail.com</a>><br>
> >>>>>> Is that actually in the ASCII set?  I see (in the output from a for loop printing the characters for ordinals 10 - 255) the circled 'r' (ord 174) and the copyright symbol (ord 169), but no trademark symbol.<br>

> >>>>>><br>
> >>>>>> 2012/2/8 Richard Reina <<a href="mailto:gatorreina@gmail.com">gatorreina@gmail.com</a>><br>
> >>>>>> I am needing to print the TM symbol for a trademark into a regular ascii text file and having no luck doing so.  Does anyone know how?<br>
> >>>>>><br>
> >>>>>> Thanks for any help.<br>
> >>>>>><br>
> >>>>>> _______________________________________________<br>
> >>>>>> SanFrancisco-pm mailing list<br>
> >>>>>> <a href="mailto:SanFrancisco-pm@pm.org">SanFrancisco-pm@pm.org</a><br>
> >>>>>> <a href="http://mail.pm.org/mailman/listinfo/sanfrancisco-pm" target="_blank">http://mail.pm.org/mailman/listinfo/sanfrancisco-pm</a><br>
> >>>>>><br>
> >>>>>><br>
> >>>>>><br>
> >>>>>> _______________________________________________<br>
> >>>>>> SanFrancisco-pm mailing list<br>
> >>>>>> <a href="mailto:SanFrancisco-pm@pm.org">SanFrancisco-pm@pm.org</a><br>
> >>>>>> <a href="http://mail.pm.org/mailman/listinfo/sanfrancisco-pm" target="_blank">http://mail.pm.org/mailman/listinfo/sanfrancisco-pm</a><br>
> >>>>><br>
> >>>>> _______________________________________________<br>
> >>>>> SanFrancisco-pm mailing list<br>
> >>>>> <a href="mailto:SanFrancisco-pm@pm.org">SanFrancisco-pm@pm.org</a><br>
> >>>>> <a href="http://mail.pm.org/mailman/listinfo/sanfrancisco-pm" target="_blank">http://mail.pm.org/mailman/listinfo/sanfrancisco-pm</a><br>
> >>>><br>
> >>>><br>
> >>><br>
> >>> _______________________________________________<br>
> >>> SanFrancisco-pm mailing list<br>
> >>> <a href="mailto:SanFrancisco-pm@pm.org">SanFrancisco-pm@pm.org</a><br>
> >>> <a href="http://mail.pm.org/mailman/listinfo/sanfrancisco-pm" target="_blank">http://mail.pm.org/mailman/listinfo/sanfrancisco-pm</a><br>
> ><br>
><br>
<br>
</div></div></blockquote></div><br>
</div></blockquote></body></html>