cp1252

How to use Special Chars in Java/Eclipse

How can I use/display characters like ♥, ♦, ♣, or ♠ in Java/Eclipse? Wenn I try to use them directly, i.e. in the source code, Eclipse cannot save the file: What can I do? Edit: How can I find the unicode escape sequence? ...

communicate with a process in utf-8 on a cp1252 consoless

I need to control a program by sending commands in utf-8 encoding to its standard input. For this I run the program using subprocess.Popen(): proc = Popen("myexecutable.exe", shell=True, stdin=PIPE, stdout=PIPE, stderr=PIPE) proc.stdin.write(u'ééé'.encode('utf_8')) If I run this from a cygwin utf-8 console, it works. If I run it from ...

Encoding cp1252

When i try the following in java System.out.println(System.getProperty("file.encoding")); i get cp1252 as the encoding Is there a way to know where this value is coming from ? (Like Environment variables or something) I would like to print the value of encoding on command prompt using some command like systeminfo on windows xp. ...

Can I avoid using CP1252 on Windows?

I would like all my toolkit to use UTF-8 but find that some tools on Windows seem to use CP1252 (which appears to be Windows-specific). Does this create output which is incompatible and if so at which codepoints? If so, can I do anything about it? (I don't completely understand the issues so I'd be grateful for basic education on these ...

Windows C API for UTF8 to 1252

I'm familiar with WideCharToMultiByte and MultiByteToWideChar conversions and could use these to do something like: UTF8 -> UTF16 -> 1252 I know that iconv will do what I need, but does anybody know of any MS libs that will allow this in a single call? I should probably just pull in the iconv library, but am feeling lazy. Thanks ...

How convert to Cakephp

SELECT *, UNIX_TIMESTAMP(GREATEST(coul1,coul1,coul1)) FROM sometable ...

Read data using ODBC ADO.NET from Db2 Codepage 1252 - Euro (€) Symbol is not retrived correctly

In VS 2005 C#, While inserting Euro (€) Symbol into Db2 table, It is storing values correctectly. DISABLEUNICODE=1 parameter helped to store this correctly. But when we try to read from the table, it is giving junk char as below. "Spec GS 1" Same code is working in VB 6.0 ADO Could you please help me. Code: OdbcConnection...

Python 3 chokes on CP-1252/ANSI reading

I'm working on a series of parsers where I get a bunch of tracebacks from my unit tests like: File "c:\Python31\lib\encodings\cp1252.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 112: character maps to <undefined> T...

php & mysql converting non- to unicode

I have characters like these on our web site: Fémnyomó That is a street address, entered in another language (though I do not know which). Here's the db setup: mysql 4.1.2log charset cp1252 West European (latin1) I'm using PHP but without mbstrings() (though I do no string conversions on this address, just echo). If I changed...