473,396 Members | 1,895 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,396 software developers and data experts.

URLDecode differences in NET 1.1 and 2.0

Hi all

I'm attempting to decode a string which works fine in 1.1

However, we've now moved the project to 2.0 and its not happy. The
length of the decodedString is different. I've tried changing the
encoding type which is UTF8.

Any thoughts?

Cheers

Sam

string stringToDecrypt = "%eb%81%85%ee%95%b1%eb%b5%a7%e0%a0%b6%ed%bb%8e
%e5%98%b4%ef%bc%97%e4%a3%ab";

string decodedString =
System.Web.HttpUtility.UrlDecode(stringToDecrypt);

Apr 4 '07 #1
5 2129
I'm not sure encoding would be an issue here... could you post the
results (decodedString) you get in 1.1 vs 2.0? Perhaps that might
shine a light...

Marc

Apr 5 '07 #2
I'm attempting to decode a string which works fine in 1.1
>
However, we've now moved the project to 2.0 and its not happy. The
length of the decodedString is different. I've tried changing the
encoding type which is UTF8.
Are your '<globalization>' tag in Web.config the same for both
projects? If it's not available in one of them it falls back to a more
global setting (machine.config) so ensure your have a globalization
tag in both of your projects and that there are the same.

Rgd,
Peter Theill

Apr 5 '07 #3
On 5 Apr, 15:46, "Peter Theill" <the...@gmail.comwrote:
I'm attempting to decode a string which works fine in 1.1
However, we've now moved the project to 2.0 and its not happy. The
length of the decodedString is different. I've tried changing the
encoding type which is UTF8.

Are your '<globalization>' tag in Web.config the same for both
projects? If it's not available in one of them it falls back to a more
global setting (machine.config) so ensure your have a globalization
tag in both of your projects and that there are the same.

Rgd,
Peter Theill
Hi Peter

Thanks for the reply. I've checked the globalization tag and they're
both the same. I've done some tests with the additional Encode
parameter and even if I set it to UTF8 in both frameworks, it still
fails

Very strange

Any other ideas?

Cheers

Sam

Apr 5 '07 #4
On 5 Apr, 11:54, "Marc Gravell" <marc.grav...@gmail.comwrote:
I'm not sure encoding would be an issue here... could you post the
results (decodedString) you get in 1.1 vs 2.0? Perhaps that might
shine a light...

Marc
Hi Marc

The decodedString doesnt want to paste in, its all squares and other
characters

I'm more curious about the length of the string which is different

Ta

Sam

Apr 5 '07 #5
In that case, can I ask: what is this string holding? it sounds like
it might be holding some raw data, in which case a byte[] (perhaps
expressed in base64) might be a better option.

Apr 6 '07 #6

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

Similar topics

2
by: Thomas Henz | last post by:
Hi again, can anyone tell me why it says that the object doesnt support this method? rs is a db query resultset. msg is a db field with urlencoded data in it. ------------ if not rs.eof then...
0
by: Yifan | last post by:
Hi I want to use UrlDecode() in C++. I have a Win32 Visual C++ (.NET) project #using <mscorlib.dll #using <System.dll #using <System.Web.dll using namespace System using namespace...
1
by: João Santa Bárbara | last post by:
hi all is there any replace for the System.Web.HttpUtility.UrlDecode to windows forms ... thks JSB
4
by: John Hoge | last post by:
Hi, I need to UrlDecode a string in a simple console application, but I am having trouble accessing Server.UrlDecode, even though System.Web is included. The application pulls a text out of a...
6
by: John Grandy | last post by:
Does Server.URLDecode() need to be applied to Request.QueryString(<key name>) ?
10
by: Alex | last post by:
Hi, I UrlEncode a value that I put in my querystring. This value originally contains the character "è", which is UrlEncoded to "%E8". When I try to read the value from the querystring, I find...
1
by: fjm67 | last post by:
I see Google edited my email address. Lets try this. captonline at yahoo dot com Can you guys help me out please? I need to implement urldecode into a php script and don't know how. Here is...
20
by: gert | last post by:
This based on a example i found at http://www.cs.tut.fi/~jkorpela/ forms/cgic.html #include <fcgi_stdio.h> #include <stdlib.h> int urldecode(char *src, char *last, char *dest){ int code;...
3
by: gert | last post by:
Anybody can tell me what i need to import to make urlDecode() work in python2.5 please. import urllib urllib.urlDecode(post) #doesn't exist urllib.urldecode(post) #doesn't exist...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.