473,233 Members | 1,602 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,233 software developers and data experts.

URL Encoding German Chars problem. help please

Hi All,
I''m using c# in asp.net and I tried to encode some upper part of ASCII chars, eg.
The desired result should be: %E1
But when I use HttpUtility.UrlEncode(""), the output result is: %c3%a1
I tried ISO 8859-1 and utf-8, neither works.
anybody can help me?
Or other way to do it, javascript escape?no experice with that
thanks for any help

Feng

-----------------------------
This message is posted by http://Asp.ForumsZone.com

Nov 17 '05 #1
2 2507


feng zhu wrote:
I''m using c# in asp.net and I tried to encode some upper part of ASCII chars, eg.
The desired result should be: %E1
But when I use HttpUtility.UrlEncode(""), the output result is: %c3%a1
I tried ISO 8859-1 and utf-8, neither works.
anybody can help me?


I didn't know that is a German character but I think what you want is
to encode from ISO-8859-1

using System;
using System.Web;

public class Test20031029 {
public static void Main (string[] args) {
string s = "";
Console.WriteLine("{0} URLencoded: {1}", s,
HttpUtility.UrlEncode(s, System.Text.Encoding.GetEncoding("ISO-8859-1")));
}
}
--

Martin Honnen
http://JavaScript.FAQTs.com/

Nov 17 '05 #2
"feng wrote:
Hi All,
I''m using c# in asp.net and I tried to encode some upper part of
ASCII chars, eg. The desired result should be: %E1
But when I use HttpUtility.UrlEncode(""), the output result is:
%c3%a1 I tried ISO 8859-1 and utf-8, neither works.
anybody can help me?


isn't exactly a German character, and %c3%a1 is the correct URL
encoding for that character's UTF-8 representation.

Cheers,
--
Joerg Jooss
jo*********@gmx.net
Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Konrad Den Ende | last post by:
I've been looking around and i've been given some hints but i simply can't get to the bottom of it. How do i specify the character encoding for reading text froma file? -- Kindly Konrad...
1
by: klappnase | last post by:
Hello everyone, there have already been a couple of threads about IDLE's sometimes annoying disability to use special characters (in my case I would like to use for example german umlauts like...
7
by: polarz | last post by:
I wrote a front end to a command line mp4 music tagger that reads my playlist files and gets info such as artist, title, album, etc, etc. I use the info to catalog, tag, sort, etc, my files. I've...
12
by: Tamir Khason | last post by:
I have Windows Form application recieved data from clipboard and convert its encoding based on some ruls. So doing following: //from source to multiple targets System.Text.Encoding targ1 =...
4
by: Jaroslav Jakes | last post by:
Hi, please help. Sounds so simple. We receive textfiles (customer orders) as e-mail attachment. These textfiles contain a simple structure of orders, like: custno, itemno, qty, text Since...
4
by: Paw Pedersen | last post by:
When using Encoding.Convert to convert from UTF-8 to ISO646-US the special Chars like are replaced with a questionmark (?). Is there any other way to convert between encodings where you can set...
4
by: George | last post by:
Hi, I am puzzled by the following and seeking some assistance to help me understand what happened. I have very limited encoding knowledge. Our SAP system writes out a text file which includes...
0
by: Janusz Nykiel | last post by:
I've stumbled upon unexpected behavior of the .NET 2.0 System.Xml.XmlWriter class when using it to write data to a binary stream (System.IO.Stream). If the amount of data is less than a certain...
23
by: Allan Ebdrup | last post by:
I hava an ajax web application where i hvae problems with UTF-8 encoding oc chineese chars. My Ajax webapplication runs in a HTML page that is UTF-8 Encoded. I copy and paste some chineese chars...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.