Integer to hexadecimal string
jicman
cabrera_ at _wrc.xerox.com
Wed Mar 12 22:08:41 PDT 2008
BCS Wrote:
> Reply to jicman,
>
> > Greetings!
> >
> > I know this has probably been asked before, or there is a simple way
> > to do this, but I can not find it. I did a few searches on
> > digitalmars on "decimal to hexadecimal" and got not hit.
> >
> > So, here is my problem: I am using a COM object that uses a file with
> > filenames on it and everything works fine until I have accented
> > characters on the filenames, such as é, Ñ, ä, etc. So, what I am
> > trying to do is to change those filenames to URL style filename, such
> > as,
> >
> > c:\temp\my file\josé.doc
> >
> > would change to,
> >
> > c:\temp\my%20file\jos%e9.doc
> >
> > So, I have two question: Is there a function in phobos that does this
> > automatically? If not, how do I change an integer, say, 233 to hex,
> > E9?
> >
> > I know how to do this programmatically, but there is gotta be an
> > easier way then me writing a function for this. :-)
> >
>
> it under URI.
>
> http://www.digitalmars.com/d/1.0/phobos/std_uri.html
>
> > thanks,
> >
> > josé
> >
Thanks, but this does encodes but only does certain characters. No the ones I want like any accented or Spanish or, [any language, really,] characters. :-)
More information about the Digitalmars-d-learn
mailing list