character-encoding

ASP.NET Excel export encoding problem

Hi! I'm doing some Excel Exports on the ASP.NET Site. Everything works except of the Encoding. When I open it in Excel, it looks like this: Eingabe Kosten je Gerät Gerät: Gerätebezeichnung: Betriebsmittel Heizöl in €: 4 Dieselverbrauch in €: 4 This is my code: Response.Clear(); Response.ContentType = "applica...

Cannot start session if documents are in different encoding

Hello , I think i encountered a PHP bug When my header file is in UTF-8 encoding and my index.php file is in ANSI PHP gives " headers already sent " error . Is this normal ? and if yes , can you explain why ? ...

Encoding in linq/entity framework

I'm working on a legacy where some fields uses special encodings. Is it somehow possible to set an decode the fields in the linq instead of doing as I'm doing now: XisoEncoding enc = new XisoEncoding() var q = from b in ent.Basket where b.ID == 22038 select b; Basket basket = query.First(); basket.STOMAN_MESSAG...

Flash coding problem

Hello I recieve the information from php script to flash. And flash display it as: Radioart=Mia Frejman - Ett hjärta - Ett Hjärta The string contain some swedish symbols. How I can normally output it? best Vladimir ...

What text encoding to use?

I need to setup my PostgreSQL DB's text encoding to handle non-American English characters that you'd find showing up in languages such as German, Spanish, and French. What character encoding should I use? ...

What do these PHP mbstring settings do?

I'm trying to figure out exactly what these php.ini settings do. What happens when they're set to different values? When are they necessary? When are they harmful? mbstring.language mbstring.http_input mbstring.http_output mbstring.encoding_translation As usual, the PHP manual is less than helpful. EDIT: Just to clarify, I understan...

Finding bytes in strings with PHP's mbstring.func_overload on

I have PHP configured with mbstring.func_overload = 7, so all the single-byte-string functions are mapped to their multi-byte equivalents. But I still sometimes need to treat strings as byte arrays; for example, when calculating their size or doing encryption. What's the best approach here? Can I just use the multi-byte functions and pa...

Incorrect characters at ModelBinding

Hi, i have a problem i am developing an asp.net mvc project. Website is in Turkish Language. When i publish this website to IIS Turkish characters get crazy in web pages so i set globalization in my web.config as <globalization fileEncoding="iso-8859-9" requestEncoding="iso-8859-9" responseEncoding="iso-8859-9"/> After this Turkish ch...

Character Encodings in PHP and MySQL

Our website was developed with a meta tag set to... <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> This works fine for M-dashes and special quotes, etc. However, I have an issue when data has been entered into a CMS component that stores data in MySQL. The MySQL collation is set to UTF8_swedish_ci (I read t...

Sending Email in PHP with special characters

I have a small web form which will cause a PHP script to send a receipt upon clicking the submit button, by an HTML mail. This mail contains special characters, namely 'å', 'ä' and 'ö'. Whatever I try, I can't get these characters to display properly everywhere. In some email clients, these characters show up just fine, whereas in others...

Outlook is unable to accept french-accented characters in my mailto string?

Outlook is causing some problems when being passed a mailto string with accented characters in it. Changing the codepage for my entire webpage that has this string on it solves this problem, but that causes other problems in the system, so I would not like to do that. A string like such returns a lot of garbage characters: "mailto:H...

mysql encoding problems

I am dealing with some external APIs, and when I save to the db, I am receiving some encoding errors, All the content I am dealing with is in unicode; but the mysql encoding is set ti latin1. It seems to work fine on my local system, but throws error on the server. The only difference between the environments is that the local runs pyth...

Multipart/form-data and UTF-8 in a ASP Classic application

Hi all, I have a problem that I really don't understand. I'm trying to upload a files in a asp classic app, without the use of an external component. I also want to post some text that will be stored in a DB. The file upload perfectly, I'm using this code: Upload Files Without COM v3 by Lewis E. Moten III The problem is the other form...

Do I need to do anything special to handle non-latin character sets in ASP.NET?

I received the following query from a customer: I am doing some research into character sets for future versions of our products. Most of the sites we have built use html including a meta tag for iso-8859-1 - the Western European Latin 1 alphabet rather than UTF-8 unicode. I have setup a page to play with this, ...

Best way to decode unknown unicoding encoding in Python 2.5

Have I got that all the right way round? Anyway, I am parsing a lot of html, but I don't always know what encoding it's meant to be (a surprising number lie about it). The code below easily shows what I've been doing so far, but I'm sure there's a better way. Your suggestions would be much appreciated. import logging import codecs from ...

Character Enconding in my java classes in Eclipse is messed up. How to fix it?

I got a eclipse project that was working OK. One day I had to format my machine, so I copied my workspace into a backup, after installing eclipse again, I imported my projects from my backed up workspace. What happened is that it corrupted all the string that contains special characters.. like.. é, são, etc.. to É, são... Is there ...

Accented/umlauted characters in C?

I'm just learning about C and got an assignment where we have to translate plain text into morse code and back. (I am mostly familiar with Java so bear with me on the terms I use). To do this, I have an array with the strings for all letters. char *letters[] = { ".- ", "-... ", "-.-. ", "-.. ", ".", "..-." etc I wrote a function for ...

Having difficulty with character encoding on website.

I have a website that allows users from around the world to submit profiles. Somewhere between storing/retrieving/displaying the characters, they are not rendering correctly. I'm not sure which step is having problems, but here is a breakdown of what is happening. When I do a SELECT from my PostgreSQL DB via the psql command line inte...

Python - Get a list of all the encodings python can encode to

I am writing a script that will try encoding bytes into many different encodings in python 2.6. This page http://www.python.org/doc/2.6/library/codecs.html?highlight=cp1250#id3 lists all the encodings that python can encode to. Rather than copy & paste that, is there some way to get a list of available encodings that I can iterate over? ...

Special characters are not supported

Hi, I am having problem to display the special characters like ’, é in Firefox and IE. But these characters are supported for the local server. I have used the following <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/19...