Re: Encoding of reverse DNS results
Re: Encoding of reverse DNS results
- Subject: Re: Encoding of reverse DNS results
- From: Ryan McGann <email@hidden>
- Date: Wed, 1 May 2002 12:33:50 -0500
On Wednesday, May 1, 2002, at 08:01 AM, Peter Sichel wrote:
>
> I'm not quite familiar with the gritty details of this, so pardon the
>
> stupidity of this. Does anybody know if there's a "standard" encoding
>
> that's used when returning reverse DNS lookup results (eg
>
> gethostbyaddr, OTInetAddressToName, etc.) Our returned strings contain
>
> escaped characters for certain computer names (such as ryan's G4), and
>
> I cna't find an encoding to pass to CFStringCreateWithCString that
>
> makes the string look halfway normal. I've tried ASCII and MacRoman,
>
> so I'm guessing that it's either one of the Windows Latin variants or
>
> there is NO standard.
>
>
Try UTF8 encoding, it worked for me.
UTF8 does not work for us. I'm thinking that this is an issue with
either our company's Windows 2000 name resolver or Mac OS X. Either way,
any computer on our network that has anything but standard ASCII in
their computer names are coming back with escaped characters, and I
can't figure out what the encoding is. Anybody know if Windows 2000 is
at fault, or is it X?
Thanks,
Ryan
----------------------------------------------------------------
Ryan McGann
Software Engineer, Macintosh Internet Security
Symantec Corporation
email@hidden
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.