encoding

Proper MySQL character set/collation variables in my.cnf?

I'm trying to switch my site over to UTF-8 completely, so I don't have to deal with utf8_encode() & utf8_decode() functions. I have the collation of my tables set properly, and I'm temporarily using the query SET NAMES utf8 to override the my.cnf file. My question is — there are a ton of character set and collation variables in my.cnf,...

Trouble decoding with NSKeyedUnarchiver

Hi, I am writing an app targeted at iOS 4.0 on XCode 3.2.3 where I store some data when the app closes using NSCoder protocol. Saving seems to work fine, the problem is retrieving the data from the saved files. My save method looks like this: -(void)saveMusicalWorksToMemory{ // create the save paths NSArray *paths = NSSearchPat...

What's the problem with the ExtJS Hybrid State and encoding using PHP ?

So the other day I posted about a problem I had trying to use the sessionProvider found in the examples of ExtJS but it was in a fairly complex page so I figured I woud trim things down and use the basic array-grid sample that uses the default CookieProvider to demonstrate the state saving in a cookie and modify it to use the SessionProv...

WCF CustomBinding Duplex Fails to Open Client port

I am struggling with this duplex WCF service which makes calls to the service to get large amounts of data. I am using wsDualHttpBinding which works but is very slow. I profiled and most time is being used by Serializers and authentication process. So I decided to use Binary Encoding and change the Security to Transport and since it is a...

ord/char question

I have text that has ord elements in it such as: Ya marcу medianoche what converts that text into proper text? ...

Emacs automatic encoding conversion

When I open a buffer in Emacs containing a German Umlaut (the word "Präsentation" occurs in a string), Emacs automatically converts it to a different encoding as soon as I save the file. How can I tell Emacs to leave the encoding alone? ...

Mixing multiple live MMS streams (mms://server) using expression encoder SDK

Expression encoder SDK can accept sources from a LiveDeviceSource or from a LiveFileSource, but both can't support mms streams. The question is, is there a way to include a live mms stream in an encoding LiveJob? And then, possibily a way to mix them and stream it? ...

Request.QueryString[] that contains '+'

I have a page that I wish to pass an ID in a querystring to another page eg Response.Redirect("~/Account/Login.aspx?CertificateID="+ CertificateTextBox.Text); but the value in the CertificateTextBox is in the format of Encoding.UTF8 so it can contains character like "ZnbiS69F2g22OeupHw+Xlg==" When the receiving page gets the QuerySt...

Is it possible to use <%: in .net framework 3.5

This may be a duplicate of some other question, but it's hard to search the web for <%: so I can't really find anything. When I created a new Asp.net MVC 2 project its templates use the new notation of automatic html encoding. WHen I changed .net framework target to 3.5, these server scripts stopped working. When I changed them to <%= e...

Character encoding while reading data using Java-JDBC from Oracle database

We have data stored in oracle 10g db which contains french character set. The requirement is to read the data and generate a output file using Java. I checked the validity of the data in Oracle db via SQL*plus and it looks good. From windows: set NLS_LANG=AMERICAN.AL32UTF8 sqlplus scott/tiger sql> select billing_address from MYTABLE ...

How to find encodng of a file programatically?

Possible Duplicate: Java : How to determine the correct charset encoding of a stream How to identify the encoding of a input file by using JAVA? ...

How much data can you encode in a single character?

If I were creating a videogame level editor in AS3 or .NET with a string-based level format, that can be copied, pasted and emailed, how much data could I encode into each character? What is important is getting the maximum amount of data for the minimum amount of characters displayed on the screen, regardless of how many bytes the compu...

PHP URL Encoding/Decoding Pretty Quotes across form field's %u2019

For some reason, after submitting a string like this Jack’s Spindle from a text form to php, I get: Jack%u2019s Spindle This is not what PHP's urlencode() would do, which would be Jack%92s+Spindle or rawurlencode() = Jack%92s%20Spindle Thus, urldecode() and the raw version don't work to decode that string... Is there another function ...

Mail header "From" sometimes not encoded with System.Net.Mail and .NET Framework 2.0

Greetings. I've checked out some other question entries here, such as this one, but do not find the same issue as I'm having. Perhaps a guru here has experienced something similar in the past. Basically, I'm creating an ASP.NET 2.0 web application, which sometimes needs to send out e-mails (using System.Net.Mail), and I'm encountering ...

Visual Studio 2008 - Default Encoding style with .SQL files

Tools used: Visual Studio 2008 Team Foundation Server or Visual Source Safe Backstory: We add our SQL files to our source control. We do this by adding them to the solution with the .sql extension and checking them in. By default these files are saved as unicode. What that means is that user A can save foo.sql and user B can get late...

setting file encodings transferring data via send_data in Rails

Hi, I'd like to transfer a UTF-8 encoded string to the client, rendering the string as a text file (in my case a v-card) using send_data str, :filename => "file.vcf", :type => 'text/html; charset=utf-8' Unfortunately the submitted file doesn't contain any encoding information and address books open the file in the default encoding o...

Normalizing UGC to UTF-8

How do I normalize what the user sends through the forms. Such as the latin ' or if they send in ; things for some reason. Any good classes or functions out there than can help? ...

Command line character encoding from PHP's exec()

I'm trying to pass UTF-8 text as an argument to a command line program using php's exec function and have been having problems. I suspect it's due to character encoding issues. When I call locale charmap from the command line, I get: UTF-8. But when I do: <?php echo exec('locale charmap'); ?> I get ANSI_X3.4-1968 How can I change...

How can I detect non-western characters?

I want to disallow certain UTF-8 input (server-side), e.g. eastern languages, where example input might be " 伊 ". However, I do want to continue supporting other latin or "latin-like" characters, such as the welsh ŵ and ŷ, so checking against latin-1 is not possible. What are my options? (if language specific, PHP preferred) Thanks ve...

RestEasy csv file upload (multipart / form-data) garbles iso-8859-1 characters in FireFox

I have a multipart / form-data form to upload a csv file to a rest easy (JAX RS) webservice. This file can contain iso-8859-1 characters like for example é. When I upload the file through Firefox these characters are garbled and they end up like a ?. When I upload the file through Internet Explorer everything works fine. I've done a lot...