On Thu, 13 Jun 2002, Mattias Konradsson wrote:
> form it gets encoded as "lk%F6" but if I do HttpUtility.UrlEncode("lk�") i
> get "lk%c3%b6" what am I missing here?
The %C3%B6 is the UTF-8 encoding of the � character, while the %F6 is the
ISO-8859-1 (ISO-Latin-1) encoding of the same character. Your problem is
probably caused by not setting what kind of encoding you want to use, and
then it defaults to UTF-8.
What happens if you change the charset meta header (or the HTTP header)
in the page with your form, so it uses UTF-8? It should post the data as
%C3%B6 then.
--
mvh Mathias
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.