Questions tagged [ucs]

A standard that defines a character set. Many character encodings are based on UCS.

24 questions
79
votes
4 answers

What is the difference between System.Speech.Recognition and Microsoft.Speech.Recognition?

There are two similar namespaces and assemblies for speech recognition in .NET. I’m trying to understand the differences and when it is appropriate to use one or the other. There is System.Speech.Recognition from the assembly System.Speech (in…
Michael Levy
  • 12,767
  • 15
  • 60
  • 98
11
votes
2 answers

Why do we need both UCS and Unicode character sets?

I guess the codepoints of UCS and Unicode are the same, am I right? In that case, why do we need two standards (UCS and Unicode)?
Lunar Mushrooms
  • 7,015
  • 14
  • 58
  • 85
11
votes
1 answer

How to change python from UCS2 to UCS4

I have a Python2.7 with UCS2 build installed on Ubuntu 12.10. I just want to recompile python with UCS4 or enable UCS4. How should I do this?
comrad
  • 729
  • 1
  • 5
  • 13
7
votes
1 answer

What does 'case insensitive' mean in RFC 3986 with respect to non-English characters?

RFC 3986 specifies that the host component of a URI is 'case insensitive'. However, it doesn't specify what 'case insensitive' means in terms of UCS or UTF-8 characters. Examples given in the RFC (e.g. " is equivalent to…
Mark Slater
  • 811
  • 7
  • 15
6
votes
5 answers

UTF usage in C++ code

What is the difference between UTF and UCS. What are the best ways to represent not European character sets (using UTF) in C++ strings. I would like to know your recommendations for: Internal representation inside the code For string manipulation…
Martin York
  • 234,851
  • 74
  • 306
  • 532
6
votes
1 answer

Dijkstra's algorithm Vs Uniform Cost Search (Time comlexity)

My question is as follows: According to different sources, Dijkstra's algorithm is nothing but a variant of Uniform Cost Search. We know that Dijkstra's algorithm finds the shortest path between a source and all destinations ( single-source ).…
John
  • 577
  • 9
  • 18
5
votes
1 answer

c++: How to read any file into std::string

I have a bunch of txt-files and want to read them into std::string and some of them are UCS-2, UTF-8 encoded. How to read them into a std::string. I just want to read any text-file into std::string. Do i have to convert them?
extreme001
  • 285
  • 1
  • 4
  • 15
3
votes
2 answers

What's the difference between Modified Dijkstra with single source, single destination point and Uniform Cost Search?

If we modify Dijkstra algorithm from "single source to all nodes shortest path" to find the shortest path from "single source to a single destination point", then what will be the difference between this modified Dijkstra and uniform cost search?…
Ayesha
  • 33
  • 3
2
votes
2 answers

How do you determine the byte width of a UTF-16 character?

What are the rules for reading a UTF-16 byte stream, to determine how many bytes a character takes up? I've read the standards, but based on empirical observations of real-world UTF-16 encoded streams, it looks like there are certain where the…
Rab
  • 406
  • 4
  • 11
2
votes
1 answer

Cisco UCS Python SDK script for querying Firmware versions

I have been working to train myself in the greatness that is Python and one of the best ways for me to learn is by doing. So, one of the many projects I have taken up is to pull firmware information from our Cisco UCS environments. After…
Grimdari
  • 249
  • 1
  • 11
2
votes
2 answers

Trouble in Perl using split() function on tab chars when string contains non-Latin characters

I'm working on modifying a Perl script that reads in a series of UCS-2LE encoded files with strings in a tab-delimited format, but I am having trouble splitting the strings on the tab character when the string contains characters outside of the…
mariera
  • 31
  • 5
1
vote
1 answer

C++: implementation-defined accepted physical source file characters

According to the C++14 standard, §2.2.1.1 [...] The set of physical source file characters accepted is implementation-defined. [...] Any source file character not in the basic source character set is replaced by the universal-character-name …
Peregring-lk
  • 9,237
  • 6
  • 37
  • 86
1
vote
1 answer

Build Python as UCS-4 via pyenv

I run into this issue ImportError numpy/core/multiarray.so: undefined symbol: PyUnicodeUCS2_AsASCIIString installing Python in a pyenv-virtualenv environment. In my case, it happens with the matplotlib package instead of numpy (as in the above…
Gabriel
  • 32,750
  • 58
  • 187
  • 337
1
vote
0 answers

How to resolve this error "undefined symbol: PyUnicodeUCS4_FromObject " while including Python packages in Odoo 8?

I downloaded pyodbc python package and tried using it for Odoo 8, but I am getting the following error: undefined symbol: PyUnicodeUCS4_FromObject The system python has UCS4 support, but the Odoo python has UCS2 support, Anyone with any idea on…
Shravy
  • 742
  • 1
  • 19
  • 58
1
vote
0 answers

How do I get a UCS code of a 1-byte letter of UTF-8 in C++?

I need to check, whether a letter (in english and russian languages) is alphabetical. A file is supposed to be encoded with UTF-8 by default. I found out, that the best solution is working with UCS codes. The way to calculate UCS-code of 2-bytes…
lidia
  • 11
  • 2
1
2