» Home » Encoding » Page 1
Different encoding results when using writeToFile:atomically:encoding:error: vs. createFileAtPath:contents:attributes:
Category : 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]];

View Replies

encoding UTF8 does not match locale en_US; the chosen LC_CTYPE setting requires encoding LATIN1
Category : 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

View Replies

HTML Character encoding affect encoding of input submission?
Category : 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?

View Replies

Character encoding filter, Korean characters encoding issues
Category : Programming Languages

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


View Replies

NSString encoding. How to get string with the same encoding as after copying from Xcode console?
Category : 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

View Replies

Is it possible to use binary encoding for Http and XML/SOAP encoding for TCP communication in WCF
Category : 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

View Replies

Perl CGI.pm encoding - wrong encoding for “ě”
Category : 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


View Replies

How to read the encoding header without knowing the encoding?
Category : 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

View Replies

Encoding a data structure based on TLV encoding
Category : 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

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

View Replies

Encoding xml using ascii encoding instead of character entities
Category : 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

View Replies

2012 / 2017 Copyrights BigHow , All Rights Reserved .