Unicode version of FindFirstUrlCacheEntry

Giganews Newsgroups
Subject: Unicode version of FindFirstUrlCacheEntry
Posted by:  HT (hto…@yahoo.com)
Date: Mon, 10 Dec 2007

Hi there,

Here is the scenario (for XP machine):

I have an user whose username is: joséna

I have a C++ app that uses FindFirstUrlCacheEntry/FindNextUrlCacheEntry to
enumerate thru IE cookies.

The ANSI version of the API has no problems and returns her username
correctly:
lpszSourceUrlName = "Cookie:josé…@somesite.com"

But with IE7 and Unicode version of these APIs, the return value is:
lpszSourceUrlName = "Cookie:jos…@somesite.com"

so, for some reason the character  "é" is gone and when using
DeleteUrlCacheEntry this will cause this API to fail because the entry
doesn't exist without the "é"...

Can please someone let me know if there is a workaround? or if I am doing
something wrong...

Thanks

Replies