unicode

How do I export a Crystal Report to a Unicode text file?

I'm trying to export a Crystal Report to a text file, while preserving any Unicode characters that are found within. By default, Crystal Reports seems to export to an ANSI text file. Here is a highly simplified version of what I'm doing: Dim objCRReport As CRAXDRT.Report [...] objCRReport.ExportOptions.FormatType = 8 'crEFTText objCRRe...

Is there any way to get Documentum to use Character based Storage for Unicode

Hi Anyone out there with sufficient knowledge of EMC Documentum and Oracle to know whether it is possible to set up a documentum repository on top of oracle so that it uses Character based field lengths rather than byte based. By Default Documentum seems to use byte based fields so if a field is string(32) it can contain 32 bytes rathe...

How to put unicode characters on a System.Windows.Forms.Button in C#?

In Visual Studio 2008 in a C# WinForms project, there is a button on a form. In the properties view, the property "Font" is set to "Arial Unicode MS". What do I need to put into the property "Text", so I get the unicode character \u0D15 displayed on the button? When I put \u0D15 into the "Text" property, the button displays the six cha...

What is the best way to convert TBytes (UTF-16) to a string?

What is the best way to convert an array of bytes declared as TBytes to a unicode string in Delphi 2009? In my particular case, the TBytes array has UTF-16 encoded data already (2 bytes for each char). Since TBytes doesn't store a null terminator, the following will only work if the array happens to have #0 in the memory adjacent to it....

How do I safely decode a degrees symbol in a wxPython app?

I have a debug app I've been writing which receives data from a C-based process via UDP. One of the strings sent to me contains a '°' character - http://en.wikipedia.org/wiki/Degree_symbol">Unicode U+00B0 (which incidentally breaks the StackOverflow search function!). When my wxPython application tries to append that string to a text box...

Unicode Console Application in Delphi 2009

How can I create unicode console application with Delphi 2009? If I do like this: {$APPTYPE CONSOLE} uses SysUtils; begin writeln('öüğşç سيمانتت'); end. I get the following: ougsc ??????? ...

How do I treat an ASCII string as unicode and unescape the escaped characters in it in python?

For example, if I have a unicode string, I can encode it as an ASCII string like so: >>> u'\u003cfoo/\u003e'.encode('ascii') '<foo/>' However, I have e.g. this ASCII string: '\u003foo\u003e' ... that I want to turn into the same ASCII string as in my first example above: '<foo/>' ...

InstallShield2009 Unicode Support

Our installation program is written using InstallShield2009, and as part of certification requirements we have to support Unicode throughout. The application itself is .NET, so supports Unicode natively, however on testing our installation with a Chinese character set we can see problems thrown up by InstallShield dialogs. Having done ...

Handling UTF-8 encoding

We have an Java application running on Weblogic server that picks up XML messages from a JMS or MQ queue and writes it into another JMS queue. The application doesn't modify the XML content in any way. We use BEA's XMLObject to read and write the messages into queues. The XML messages contain the encoding type declarations as UTF-8. We...

unicode in postscript

Is there anyway to use unicode strings (most probably in UTF-8, but could be any encoding) in PostScript? So far, i've been using this function to transforms fonts to Latin1 encoding: /latinize { findfont dup length dict begin { 1 index /FID ne {def}{pop pop} ifelse }forall /Encoding ISOLatin1Encoding def currentdict end ...

Double-Escaped Unicode Javascript Issue

I am having a problem displaying a Javascript string with embedded Unicode character escape sequences (\uXXXX) where the initial "\" character is itself escaped as "&#92;" What do I need to do to transform the string so that it properly evaluates the escape sequences and produces output with the correct Unicode character? For example, I...

std::wcout to console window in XCode

In an XCode project, if I use std::cout to write to the console the output is fine. However, if I use std::wcout I get no output. I know that this is a thorny issue in C++, and I've been googling around to try and find a specific solution in the XCode case. A couple of things I found that it was suggested should work were: std::c...

How to convert Unicode string into a utf-8 or utf-16 string?

How to convert Unicode string into a utf-8 or utf-16 string? My VS2005 project is using Unicode char set, while sqlite in cpp provide int sqlite3_open( const char *filename, /* Database filename (UTF-8) */ sqlite3 **ppDb /* OUT: SQLite db handle */ ); int sqlite3_open16( const void *filename, /* Database filename (UT...

MySQL collations not working as advertised in documentation

I'm trying to get my MySQL table to behave as the utf8 table in Example 2 from this MySQL Reference page: CREATE TABLE germanutf8 (c CHAR(10)) CHARACTER SET utf8 COLLATE utf8_unicode_ci; INSERT INTO germanutf8 VALUES ('Bar'), ('Bär'); SELECT * FROM germanutf8 WHERE c = 'Bär'; According to the example, this should yield: +------+ | c ...

Javascript + Unicode

Does anyone know of any JavaScript libraries that support Unicode-aware regular expressions? For example, there should be something akin to \w that can match any code-point in Letters or Marks category (not just the ASCII ones), and hopefully have filters like [[P*]] for punctuation etc. ...

Can someone explain Encoding.Unicode.GetBytes("hello") for me?

Hi, My code: string input1; input1 = Console.ReadLine(); Console.WriteLine("byte output"); byte[] bInput1 = Encoding.Unicode.GetBytes(input1); for (int x = 0; x < bInput1.Length; x++) Console.WriteLine("{0} = {1}", x, bInput1[x]); outputs: 104 0 101 0 108 0 108 0 111 0 for t...

windows cmd pipe not unicode even with /U switch

Hello, I have a little c# console program that outputs some text using Console.WriteLine. I then pipe this output into a textfile like: c:myprogram > textfile.txt However, the file is always an ansi text file, even when I start cmd with the /u switch. cmd /? says about the /u switch: /U Causes the output of internal commands...

Unicode and network communication

I am planning on developing a windows based client app and a platform agnostic server app. The client app basically sends messages to the server app. Client app can send messages in English or in other languages. Should I be using UNICODE for encoding messages in my client app? What is the general practise among applications involved in ...

What are the experiences with using unicode in identifiers

These days, more languages are using unicode, which is a good thing. But it also presents a danger. In the past there where troubles distinguising between 1 and l and 0 and O. But now we have a complete new range of similar characters. For example: ì, î, ï, ı, ι, ί, ׀ ,أ ,آ, ỉ, ﺃ With these, it is not that difficult to create some ve...

How do I remove the BOM character from my xml file

I am using xsl to control the output of my xml file, but the BOM character is being added. Thanks ...