» Home » Encoding » Page 1
Different encoding results when using writeToFile:atomically:encoding:error: vs. createFileAtPath:contents:attributes:
by Oli in Mobile Programming

In my iPhone App I have the capability to export data to an .txt file and send it via Mail – but have currently problems regarding the encoding.

To attach the file to mail I simply create a NSData instance from a NSString instance as followed:

NSData *dataToExport = [[NSData alloc] initWithData:[myExportString dataUsingEncoding:NSUTF8StringEncoding]];

encoding UTF8 does not match locale en_US; the chosen LC_CTYPE setting requires encoding LATIN1
by unfool in Databases

While trying to install opennms :

/usr/share/opennms/bin/install -l /usr/local/lib -dis

I get the error:

ERROR: encoding UTF8 does not match locale en_US Detail: The chosen LC_CTYPE setting requires encoding LATIN1.

and I'm not sure how to proceed, as I've tried creating the DB several different ways (see below).

Full l

HTML Character encoding affect encoding of input submission?
by ugufugu in Coding

Does the character encoding of an html page affect the character encoding of characters submitted via an input field (i.e. what a user is typing/what gets submitted), or is it the encoding of the display of the page only?

Character encoding filter, Korean characters encoding issues
by SMOGZINN in Programming Languages

We have a Spring MVC based multi lingual web application. We have set the CharacterEncodingFilter in web.xml as mentioned below


NSString encoding. How to get string with the same encoding as after copying from Xcode console?
by Lathentar in Mobile Programming

Briefly: My xml string is with wrong encoding. But after using NSLog and copying string from Xcode console the string got right encoding.

Full explanation:

I sent xml string to server with ASIFormDataRequest and encoding:

<?xml version="1.0" encoding="UTF-8"?>

And I got an error 500 "Server can't parse your xml". I thought, that

Perl CGI.pm encoding - wrong encoding for “ě”
by postino in Programming Languages

I have a simple web page that uses CGI.pm This is what I do:

when I call any perl CGI.pm function and use czech character "ě" for value of a textfield, label of radio_group or anything else I get �› insetad of "ě"

this is extremly weird - since the whole page is utf8 (<meta name="charset" content="utf-8"/> ). Especially since this works


Is it possible to use binary encoding for Http and XML/SOAP encoding for TCP communication in WCF
by Gianluca Riccardi in Programming Languages

I understand that Most common encodings for WCF are basicHttpBinding and wsHttpBinding, which are both based around SOAP/XML, but is there is any way in WCF to send SOAP/XML over TCP(netTCPBiding) and vicerversa i.e. Binary encoded data over Http. If Yes how can I do this in my WCF application

Encoding xml using ascii encoding instead of character entities
by Asif in Programming Languages

Alright, so here is my issue. I need to generate xml in Java to pass onto another application. I started off thinking this would be easy using an org.w3c.dom.Document. Unfortunately the application I need to pass the XML off to requires that special characters like " need to be encoded as ASCII (&#034;) instead of their character entity (&quot;). Does anybody know a simple solution to t

How to convert the encoding of an string to UTF-8 without know the original encoding in C#?
by nsavop in C & C++ & C#

I'm reading a CSV file with Fast CSV Reader (on codeproject). When I print the content of the fields, the console show the character '?' in some words. How can fix it?

How to read the encoding header without knowing the encoding?
by NoTine42 in Web Design

If I am reading an XML of HTML file, don't I have to read the tag that tells me the encoding to be able to read the file? Isn't that tag encoded the same way the file is? I am curious how you read that tag with out knowing the encoding. I realize this is solved problem. I am just curious how its done.

Update 1

I dont get it, in UTF-16 wont each character take 2 bytes, no


Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .