Programming :: Displaying Unicode Characters
Feb 19, 2011
I wrote a java program that writes strings to a file. The strings contain foreign language characters. When I run the program in Windows, the output file shows the foreign characters. However, when I attempt the same operation in Linux, the output file shows a white question mark in a black background instead of the foreign characters. The same Linux system could display the foreign characters if I copy the output file from Windows to Linux. I tried to create the output file using gedit that my program would then add additional strings to and chose Unicode-32 for encoding but still the same problem.
What could I do to get the program to display the foreign language characters from output text file?
View 6 Replies
ADVERTISEMENT
May 6, 2010
I'm using openSUSE 11.2 with GNOME dual-booted with Windows 7, been installed from scratch for like a week. The bottom line is: Nautilus displays a series of matrices, "x"s and other symbols instead of characters in Hebrew.
Screenshot:
Now, it worked fine at the beginning but once I started installing updates it went. I installed a whole bunch of updates and programs so I don't know what changed it. The weird part is (as you can see in the screenshot) that the shortcut to the left of a Hebrew-named folder shows up correctly only the first time Nautilus opens after starting. So as soon as I closed the Nautilus window after taking the screenshot and reopened it, it also displayed like the others. The screenshot is of my ntfs Windows drive, however the problem occurs in my home folder as well.
Here's my fstab anyway:
Code:
/dev/disk/by-id/ata-ST9160821AS_5MA727CM-part5 swap swap defaults 0 0
/dev/disk/by-id/ata-ST9160821AS_5MA727CM-part6 / ext4 acl,user_xattr 1 1
[Code]....
View 9 Replies
View Related
Oct 13, 2009
I am working on an application that will convert English text into equivalent Indian language text. Since Unicode is the standard, I will be using it. In most of the western languages each code-value directly refers to the glyph index and placing the code-values side by side will give the required display. This one to one mapping is not possible in Indian languages where rendering syllables is required rather than rendering just consonants and vowels. Many of the complex characters are made up by combining several unicode values.
My question here is: How Linux renders this Unicode text correctly? More specifically, what package is used? I believe in Windows they use Uniscribe for rendering.I believe there will be an operating system library for handling the text rendering. Or do I need to write my own rendering engine? How programs like Firefox, GEdit shows unicode text? Do they also have proprietary engines for correct rendering?
View 2 Replies
View Related
Sep 5, 2009
Say I want to write some of the more exotic Unicode characters to a file, what's the proper way to do it? when decimal integers are involved, we use %d for floating point we use %f and for hex we use %p.What's the equivalent marker for Unicode values that C understands?
View 3 Replies
View Related
Apr 17, 2009
From time to time, new characters are added to the unicode standard.For instance, in 2008 a capital sharp s (upper case form of German eszett)was added at position 0x1e9e.What actions need to be taken in order to make the new character part of the various fonts we use on our desktops?
View 1 Replies
View Related
Dec 9, 2009
In previous versions of Fedora I was able to do Ctrl + Shift + U, enter the Unicode number - i.e., 20ac, press Enter and get a euro character. In Fedora 12 I do not have that feature. My language is US English.
View 5 Replies
View Related
Jun 29, 2010
On SuSE 10.0 I used to be able to use shift + ctrl + unicode code. That does not seem to work now. How can I get this feature again? I miss it. I used to use it a lot to put the copyright symbol over my artwork in Gimp.
View 9 Replies
View Related
Mar 3, 2009
I recently intalled Debian lenny and I'm having issues with some of the unicode characters. Instead of displaying the symbols properly it shows one of the following depending on font/app:
1) Square outline with four letters/numbers arranged inside
2) Just a blank square outline
3) Just a blank space
I haven't been able to test all possible characters, but from a quick check it seems that Cyrillic works properly, Japanese doesn't.A few Google searches later and I'm no wiser on how to fix the issue. Any help?
View 2 Replies
View Related
Dec 27, 2009
My terminal shows unicode squares (the little square with it's 2 byte unicode value inside it), whenever I press a control character while running a program (ex. cat or ping).See this example. Here I show the key's I pressed then turn off echoctl, and repeat the sequence. http://imagebin.ca/img/mXbutJ1.png
the 0003 is when I pressed Ctrl+C, and the 001A is when I pressed ctrl+z.Can anybody tell me why this is or how to turn it off. This is inside a gnome-terminal session, though I don't think it's gnome-terminal.If, inside this exact same bash session I open screen (by typing "screen"), it doesn't do this anymore, and ctrl+c/z/etc is completely quiet.
View 5 Replies
View Related
Dec 8, 2009
For some unknown (to me) reason, "Ctrl+Shift+u, <unicode number>" doesn't work in F12. I had gotten quite used to this method in order to input several symbols and if you know what you want, it is a lot faster compared to using the character map. This was working in all recent Fedora versions.Does anyone know how to enable this functionality?
View 4 Replies
View Related
Feb 15, 2010
I have a problem when opening documents in OpenOffice write, it doesn't display the characters for certain menu options - just a series of squares instead. It does this in other OpenOffice applications as well.
View 2 Replies
View Related
Feb 8, 2011
I have a mysql database using utf8_unicode_ci collation and a PHP page with UTF-8 encoding. The problem is that the info comming from the database is not correctly displayed (it shows "?" for some spanish characters). But the ones (same character) I write directly in the PHP file are showing OK.
View 1 Replies
View Related
Jun 23, 2010
I've been seeing things like this in Firefox since installing:
Franais
Espaol
where the is a special/accented character. I've also been seeing the in places that seem likely to have some kind of quote mark, probably curved quotes. I can see straight single and double quotes. To correct this, I've tried changing the display font and the character encoding. I've also looked at the Mozilla Add-On site to see if I could find a plug-in to fix it, to no avail.
What should I try now? Currently I'm using Liberation Sans with UTF-8. I'm a native English speaker so I need a western encoding (I think), but I'd still like other characters to display properly.
View 2 Replies
View Related
Dec 30, 2010
In CentOS 5.4 (Final), emacs is displaying characters as little boxes. see attached screen shot. I searched the Web and found others have this same problem with emacs in CentOS 5.4 but have not found any solution. I installed emacs in a base CentOS Amazon EC2 instance as follows:
yum -y groupinstall "GNOME Desktop Environment"
yum -y install emacs
yum -y groupinstall emacs
This issue does not arise for me in Amazon EC2 instances running Red Hat, Fedora, or Ubuntu when I install emacs as I did here. I am not X font savvy
View 1 Replies
View Related
Jul 7, 2011
But what is the easiest way to figure out the Unicode number of a character when you already have the character?
For instance, I pasted this character here from a PDF:
View 4 Replies
View Related
Jan 20, 2009
To know the function on checking whether a character is ascii or unicode character. From the following [uRL]. The function IsTextUnicode is related to Windows VC++ library. I would like to know the library/function which provides such facility.
View 2 Replies
View Related
Jan 3, 2011
Is there a good open-source Unicode string library for C++ (or C)?
View 4 Replies
View Related
May 11, 2011
i have problem in socket programming, while displaying received message in file,i got a problem... i cant able to write it in the file.... this is the code....
Code:
/* tcpserver.c */
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
[Code]....
now my problem is run time error i can able to create file but i cant able to write file....log.txt contain nothing.... as here i have give sample code... dont say not initialising function and all.... i have initialised , please only see func1() - my problem is only not able to write msg which i got received from the client..
View 2 Replies
View Related
Jan 24, 2010
Code:
Database
rina lives:fatin:20:20:20
rina:fatin:20:20:20
i am having a small problem in extracting out the information from the database. For example, if i were to input a book titled rina into my search , i would only want it to display the row which has the title rina, like this
Code:
rina:fatin:20:20:20
but when i use a coding like this :
Code:
grep -i "$Title" fruit| awk -F":" '{ print $0}'`
its displays both titles and their information
Code:
rina lives:fatin:20:20:20
rina:fatin:20:20:20
for some reason, it will read both rows as both contains the word "rina".
View 8 Replies
View Related
Mar 9, 2010
I get an error when typing perl build.pl: Code: Cannot locate Unicode/String.pm in @INC
View 11 Replies
View Related
Jan 14, 2010
i am using awk to display my information in a certain order.
Database :
Code:
Persia:42:John
France:50:Mabel
Persia:50:Rach
Germany:60:John
My expected output is :
Code:
Title Price Author
Persia 42 John
France 50 Mabel
[code]....
I tried using cut command but it also gives me the same problem. If i do not assign it to a variable, how am i able to format it to display it in the correct format?
View 4 Replies
View Related
Jan 23, 2011
Is there any way to find what is displaying in a terminal in C language?
I want to automate ssh login process, I know that I can use "expect" but I want to write another program in C myself.
In first ssh try to a host, ssh prints a message like this:
Quote:
The authenticity of host '192.168.30.1 (192.168.30.1)' can't be established. RSA key fingerprint is **** Are you sure you want to continue connecting (yes/no)?
and waits for an answer. I want to enter "yes" programatically when the message appears, but I don't know how to find if the message is appeared or not. In this case problem can be solved in another way, deleting the entry of the host from ~/.ssh/known_hosts before executing the ssh command, sleeping for one or two second and entering yes. Same problem exist for password prompt and this can be solved by sleeping, too.
But it is not a general solution and can be failed if prompts appear after entering required keys.
View 8 Replies
View Related
Apr 8, 2011
So For example I run this command:
Code:
But want to gerp / cut it in such a way that it only displays
Code:
Now the thing is that these 3 lines are not static.. there can be N number of lines there.. the only thing is that I want the command / output NOT to display the first line but the rest of the n lines ..
View 9 Replies
View Related
Oct 8, 2010
I want to write a program in C which will generate a maze randomly and find the solution for it ..
The idea behind is in [url]
How the 16 bit integer is stored in a variable...Earlier I wrote a program on trees and displayed it using dotty...Is there any such tool to display a maze...I am using ubuntu 10.04
View 1 Replies
View Related
Mar 13, 2010
Im having various problems with the graphic printing features for applets.
In this immediate applet, when I print and update the previous line bleeds through the next line. I tried printing a series of spaces to clear the first text, but it doesn�t work.
Code:
View 8 Replies
View Related
Aug 31, 2009
I have got a problem while reading from the serial port. I'm working on iMX-31 board and Eclipse IDE. Whenever I'm trying to read any data through the serial port, it's displaying I/O Possible and the application is being terminated. After reading I'm trying to write this data on a file. Here are the excerpts from the code:
# int main()
{
if (openport()<0)
[code]...
View 7 Replies
View Related
Oct 26, 2010
To redirect standard output to multiple files:
Code:
echo Test | tee file1 file2
My problem is that the word "Test" still displays to the screen? I want same effect as:
Code:
echo Test > file1
but with multiple file redirection.
View 3 Replies
View Related
Feb 16, 2009
I'm working on my ncurses application, written in C. I get user input through a loop which uses getchar(). I was able to recognize Ctrl-n by comparing the keypress to ASCII character 16, and this seems to work fine. However, if I noticed that the ASCII character for Ctrl-j (10) is the same as the Line Feed. I tested this, and if I press enter on the keyboard I get the same ASCII value as when I press Ctrl-j.
So, what do I do if I want Ctrl-j to mean something different in my program than pressing enter?The ncurses terminal mode is set to raw, with a 100 millisecond timeout, and keypad is on (I'm already using the up and down arrow-keys).
View 1 Replies
View Related
Feb 18, 2010
I am trying to create an array containing all ASCII characters, how do I create one:
Code:
#!/bin/bash
CHARLIST=( a b c d e f g h i j k l m n o p q r s t u v w x y z
[code]...
View 6 Replies
View Related
May 12, 2010
I see I'm finally posting an AWK question rather than an answer for a change I wanted to make an AWK script that would scramble all the characters in each field, but leave the first and last characters where they were.
View 14 Replies
View Related