» 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]];
[[NSFileM

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?


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


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


<filter>
<filter-name>SetCharacterEncodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
&l

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


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


pr

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


Encoding.Default is not the same as no encoding in File.ReadAllText?
by TCH in Programming Languages

(Sorry if this is a dupe)


I've just spent a long time trying to read a text file correctly.


Having started with File.ReadAllText(path) and getting screwed-up characters, I tried several variants of File.ReadAlltext(path, Encoding) after which I got bogged down trying to analyse my input files to work out which byte was the problem, etc.



Encoding a data structure based on TLV encoding
by Vijayant Singh in Programming Languages

I have to encode the parameters present inside a data structure based on X.690 encoding.
Suppose, my structure is:


struct Data_Struct
{
parameter1
parameter2
parameter3
}

Some or all of these parameter may be having valid data, say, parameter1 and parameter3.
Then I am supposed to encode on


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