Re: urlencoding problem with åäö

Mathias Axelsson <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.general
Message-ID <Pine.SOL.4.10.10206130844150.13592-100000@kairos>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.