Integer to hexadecimal string
BCS
ao at pathlink.com
Tue Mar 11 20:35:19 PDT 2008
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é
>
More information about the Digitalmars-d-learn
mailing list