encoding

‘ “ é == ‘ “ é, but on what encoding/reference?

I have a ColdFusion script that does: <cfset content = replace(content,"&##147;","""","all")> Which replaces &147; by ". Google understands this too, if you type &#145; &#147; &#233; at its search box its transformed on the results page to ‘ “ é". If I search for é on this HTML Entity Character Lookup page, it'll return &#233; to me....

MySQL cuts off string at special chars

Hello, I'm trying to insert remote POST data (articles sent by iSnare) into MySQL with PHP. Data comes successfully from remote POST sender and I can write it to plain-text file without a problem. Unfortunately, when it comes to insert it into MySQL, MySQL cuts off string (article) at special char. I tried many things but still I'm uns...

Signup or Invitation Email Verification w/o Database

I'd like to keep my database clean of stale almost-accounts, and I was thinking about making new signups and invitations put their data into the welcome email as an encrypted or hashed url. Once the link in the url is visited, the information is then added into the database as an account. Is there something that currently does this? Any ...

how to convert base64 /radix64 public key to a pem format in python

is there any python method for converting base64 encoded key to a pem format . how to convert ASCII-armored PGP public key to a MIME encoded form. thanks ...

Encoding problem (UTF-8) in PHP

Hello! I want to output the following string in PHP: ä ö ü ß € Therefore, I've encoded it to utf8 manually: ä ö ü ß € So my script is: <?php header('content-type: text/html; charset=utf-8'); echo 'ä ö ü ß €'; ?> The first 4 characters are correct (ä ö ü ß) but unfortunately the € sign isn't correct: ä ö ü ß € Here you...

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...

How can I make Html.DropDownList encode its values?

In my viewData I have an IList mls. I want to use this to show in a dropdown. Like so: <%= Html.DropDownList("ml3Code", new SelectList(Model.Mls, "Code", "Description", Model.Ml3.Code ?? ""), Model.T9n.TranslateById("Labels.All"), new { @class = "searchInput" })%> This works fine, until there's a myObj...

How do I reverse escape backslash ecodings like "\ " and "\303\266" in bash?

I have a script that records files with UTF8 encoded names. However the script's encoding / environment wasn't set up right, and it just recoded the raw bytes. I now have lots of lines in the file like this: .../My\ Folders/My\ r\303\266m/... So there are spaces in the filenames with \ and UTF8 encoded stuff like \303\266 (which is ö...

how to encode a key in mime format

if the key is in ascii armored form ,taken by any pgp public key server and i want to convert it in mime encoded format.how to do ?is there any python api methods ? thnks a lot ...

How can I get URL encoded links to work in Outlook 2007? Anybody?

From one of our applications we send an email out with a URL (link) in it. We URL encode that link for multiple reasons. One of the things we encode is the period which we represent as %2E. In Outlook 2003 this works fine. If you hover over the link, the %2E gets translated to a period and if you click the link it will open the browser w...

how to recover the binary stream(original form) from radix 64 encoding

how to get the actual public key i.e its binary form i.e without radix 64 conversion .i need to extract the public key from radix64 encoding .the pgp server gives me the key in radix 64 format now i have to extract the public key from it. ...

Encoding problem in JSP / Tomcat5

I have a web application running on Tomcat5. In a jsp page say page1.jsp, there are some check boxes, where title and value have some french characters (Français). When I select some of the check boxes and submit the page, it goes to page2.jsp where I am showing selected titles. Problem is, on this page the special characters are getting...

Some UTF-8 characters do not show up on browser

Some UTF-8 characters like the UTF-8 equivalent of C2 96 (hyphen). On the browser it displays it as – (utf box with 00 96). And not as '-'(hyphen). Any reasons for this behavior? How do we correct this? http://stuffofinterest.com/misc/utf8.php?s=128 (Refer this URL for the codes) I found that this can be handled with html entities. Is...

Is there a Java method that encodes a collection of parameters as a URL query component?

Is there a widely-used Java library that does something like what dojo.objectToQuery() does? E.g. (assuming the use of HttpCore's HttpParams object, but any key-value mapping will do): HttpParams params = new BasicHttpParams() .setParameter("foo", "bar") .setParameter("thud", "grunt"); UnknownLibrary.toQueryString(params); sho...

Encoding problem undr Groovy

Hi! I am developing an application which should work under different languages (german, spanish, etc). The application uses an Oracle DB. I have CRUD business processes and I have the standard views (create, edit, show, list). No problems for creating, showing and listing any record containing special chars like ä,ö,ü, etc. But when I e...

What encoding to use for exporting to CSV?

I'm developing a java app that exports data to CSV files, intended to be opened in Excel by end users. We just noticed that the export function uses Java's platform default encoding. This causes umlaut characters to be lost and unit test to fail on the build server (which is configured to have US-ASCII as its platform default encoding ex...

Guessing UTF-8 encoding

I have a question that may be quite naive, but I feel the need to ask, because I don't really know what is going on. I'm on Ubuntu. Suppose I do echo "t" > test.txt if I then file test.txt I get test.txt:ASCII text If I then do echo "å" > test.txt Then I get test.txt: UTF-8 Unicode text How does that happen? How does file...

NSData to NSString converstion problem!

Hi guys, I'm getting an html file as NSData and need to parse it to extract some info. My approach was to convert it to NSString with UTF8 encoding (the html has non english characters, russian for example) - it failed. I used something like that: NSString *respData = [NSString stringWithUTF8String:[theData bytes]]; but it returned n...

Good resources for learning the different types of Character Encoding and converting between them

One thing I have never truly understood is the concept of character encoding. The way encoding is handled in memory and code often baffles me in that I just copy an example from the internet without truly understanding what it does. I feel it's a really important and much overlooked subject that more people should take the time to get ri...

URL Shortening: What's the best encoding to use?

I'm adding a feature to my project where we are generating links to internal stuff of our website, and we want these links to be as short as possible, so we'll be making our own "URL Shortener". I'm wondering what's the best encoding / alphabet to use for the generated short URLs. This is largely a subjective question, I'd like to know ...