url-encoding

HTML Escapes

Given: CR = %0d = \r LF = %0a = \n What does %3E, %3C Mean? ...

Handling national signs like ą ę in url? - your option...

how do you handle them? ...

Ampersands in URLRewriter Query Strings

I have a query string parameter value that contains an ampersand. For example, a valid value for the parameter may be: a & b When I generate the URL that contains the parameter, I'm using System.Web.HTTPUtility.UrlEncode() to make each element URL-friendly. It's (correctly) giving me a URL like: http://example.com/foo?bar=a+%26b The...

character encoding seems to work on a MAMP server but not on a WAMP server?

Hi, I've working on a web application, that should be able to accept tags and search queries in multiple languages. That's not asking too much, is it? Now, on my development MAMP server everything is great. I add multilingual tags, search in any language I want etc. On the other hand, on the production WAMP server, multilingual characte...

Need well formatted data for testing

Sometimes you need data for tests, like Adobe Thermo has prewritten "sets" of data, like 1-word strings, 3-word strings, etc for use in populating data controls. I need: Continuous text, no newlines CSV Numbers, Integers CSV Numbers, Decimals URL encoded strings Any ideas on how to get any of those? ...

How do you unescape URLs in Java?

When I read the xml through a URL's InputStream, and then cut out everything except the url, I get "http://cliveg.bu.edu/people/sganguly/player/%20Rang%20De%20Basanti%20-%20Tu%20Bin%20Bataye.mp3". As you can see, there are a lot of "%20"s. I want the url to be unescaped. Is there any way to do this in Java, without using a third-part...

C# Start a new MailTo Process and HTML URL Encoding

I have created a new MailTo extension method for the Process class which just fills the Process with a new ProcessStartinfo which contains the required mailto arguments. I have created a method called FormatMailToArgument (Right at the end) which converts control characters to their Url Encoded equivelants and have tested this and it wor...

C#/.NET: GETting a URL with an url-encoded slash

I want to send a HTTP GET to http://example.com/%2F. My first guess would be something like this: using (WebClient webClient = new WebClient()) { webClient.DownloadData("http://example.com/%2F"); } Unfortunately, I can see that what is actually sent on the wire is: GET // HTTP/1.1 Host: example.com Connection: Keep-Alive So http:...

ASP.NET: Get *real* raw URL

In ASP.NET, is there any way to get the real raw URL? For example, if a user browse to "http://example.com/mypage.aspx/%2F", I would like to be able to get "http://example.com/mypage.aspx/%2F" rather than "http://example.com/mypage.aspx//". I would of course like a clean way to do it, but I can live with a hacky approach using reflecti...

Getting U+fffd/65533 instead of special character from Query String

Hi, I have a C# .net web project that have a globalization tag set to: <globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="nb-no" uiCulture="no"/> When this URL a Flash application (you get the same problem when you enter the URL manually in a browser): c_product_search.aspx?search=kjøkken (alternatively: c_prod...

Configuring Tomcat 5.5 to UTF-8 encode all sendRedirect() redirections?

A requirement of the product that we are building is that its URL endpoints are semantically meaningful to users in their native language. This means that we need UTF-8 encoded URLs to support every alphabet under the sun. We would also not like to have to provide installation configuration documentation for every application server and...

is it almost a standard that web applications assume the query string to be in UTF-8?

when we type in or paste it to a browser's address bar: http://www.google.com/search?q=%E5%A4%A9 i think there is no way to tell whether the encoding is UTF-8 or any other encoding, so the application will usually assume it is UTF-8. So is it entirely up to the app to interpret it as whatever encoding it wants to or assumes to be? (f...

How secure is a HTTP GET when the data is URL Encoded?

If the data is Url Encoded, is it secure enough to send login credentials over HTTP GET? ...

How to stop XSL unescaping URLs

I am using XSL to display an XML representation of an email message in browsers. Email attachments are stored in separate files to the main email XML file, and so I want the resulting web page for the email to contain a link to its attachments. However some of the attachments are email messages themselves, and may have been forwards or ...

How can I disable URL-encoding of cookies in Rails

I have a Rails application that has to co-exist with a very old legacy application. The legacy application looks for a cookie that has a value containing a specific string of characters. Unfortunately, the characters in the legacy cookie often contain slashes. The problem I have is that when the Rails application writes the cookie it ...

In a URL Should spaces be encoded using %20 or +?

In a URL that used to request an image on a page (in this case a tracking image) should I encode the spaces using %20 or +. i.e. www.mydomain.com?type=xbox%20360 or www.mydomain.com?type=xbox+360 Our tracking company is expecting the top version, but the Java method URLEncoder.encode("xbox 360","UTF-8") gives the bottom version. Wh...

URL Encoding being lost before processing - ASP.net

I am building a web-store that uses URL encoding extensively. I have a list of Departments & Categories in my database which I use to generate the links. These are, of course, URL encoded before they are sent. Some Typical Links are... /MySite/Store/Countertop+Equipment/Can+Openers.aspx /MySite/Store/Dinnerware.aspx ...

ASP.Net URL Encoding

I am implementing URL rewriting in ASP.net and my URLs are causing me a world of problems. The URL is generated from a database of departments & categories. I want employees to be able to add items to the database with whatever special characters are appropriate without it breaking the site. I am encoding the data before I construct t...

How to decode HTML encoded text in MS Access

Hi all, I have a table field in MS Access 2003 which contains HTML encoded strings like this: &#913;&#957;&#964;&#945;&#947;&#969;&#957;&#953;&#963;&#956;&#972;&#962; &#960;&#945;&#947;&#954;&#959;&#963;&#956;&#943;&#959;&#965; &#949;&#960;&#953;&#960;&#941;&#948;&#959;&#965; &#963;&#964;&#951;&#957; &#954;&#945;&#964;&#940;&#961;&#964...

Asp.net: path encoding

I have an image gallery that I created by reading the contents inside a directory. Now right away I noticed a problem when there was a "+" in the filename. Like "glas + door.jpg" would break. So I thought it was an encoding problem and since it was only the "+" sign I thought that replacing the "+" with "%2b" would solve the problem. Loc...