Actually i'm displaying URDU(same like arabic) chars in my application... Problem is, app doesnt display all chars. Instead of few char it displays QUADRATIC SYMBOLS. I'm inserting that text from NOTEPAD in WinXP and then reloading resource file into VC6.
Unicode for one of those symbols which are not being displayes on device is "FEA9" .
I want to check if device displays CHAR CORRECT using its Unicode directly.
So you actually have problems with character displaying, rigth? Not with defining them in resource. Did i understand well?
pirosl
 
Mon, 2005-06-27 09:07
chishti_hameed (not verified)
Forum posts: 2043
Re: How to define a string using unicode?
Quote from: pirosl
So you actually have problems with character displaying, rigth? Not with defining them in resource. Did i understand well?
Yeah..... Problem is with displaying char. But i dont know how to define a char using unicode too
as i told in my prev msg, that i'm inserting chars in resource file using notepad. So may be problem with displaying char is somewhere in fonts (Windows,Symbian) ...
I wanted to confirm if symbian wants to display those char or not but putting their UNICODE value direct in code and displaying them .
The font you're trying to use, probably, does not have a glyph/character corresponding to the code point in question (which is why the square/rectangle is displayed in its place).
So, you also need to find a Unicode font (file) that contains the characters you want to display.
 
Mon, 2005-06-27 09:53
chishti_hameed (not verified)
Forum posts: 2043
Re: How to define a string using unicode?
Quote from: N/A
The font you're trying to use, probably, does not have a glyph/character corresponding to the code point in question (which is why the square/rectangle is displayed in its place).
So, you also need to find a Unicode font (file) that contains the characters you want to display.
I want to check what system has for this : FEA9 ??
Forum posts: 982
how do i define a string using unicodes , smth like code of "S" code of "T" e.t.c....?
i need to define a string in lang other than eng.....
Define your string like this in resource file: "Normal chars "<0x00aa><0x00ab><0x00ac>" normal chars"
where 00aa, 00ab, 00ac are the codes of what chars do you want to use
pirosl
how do i define a string using unicodes , smth like code of "S" code of "T" e.t.c....?
i need to define a string in lang other than eng.....
Define your string like this in resource file: "Normal chars "<0x00aa><0x00ab><0x00ac>" normal chars"
where 00aa, 00ab, 00ac are the codes of what chars do you want to use
Not sure if i understood all
could u plz write an example string?
Forum posts: 982
pirosl
Actually i'm displaying URDU(same like arabic) chars in my application...
Problem is, app doesnt display all chars. Instead of few char it displays
QUADRATIC SYMBOLS. I'm inserting that text from NOTEPAD in WinXP
and then reloading resource file into VC6.
Unicode for one of those symbols which are not being displayes on
device is "FEA9" .
I want to check if device displays CHAR CORRECT using its Unicode directly.
Forum posts: 982
pirosl
Yeah..... Problem is with displaying char. But i dont know how to define a char using unicode too
as i told in my prev msg, that i'm inserting chars in resource file using notepad. So may be problem with
displaying char is somewhere in fonts (Windows,Symbian) ...
I wanted to confirm if symbian wants to display those char or not but putting their UNICODE value direct in code and
displaying them .
Forum posts: 720
So, you also need to find a Unicode font (file) that contains the characters you want to display.
So, you also need to find a Unicode font (file) that contains the characters you want to display.
I want to check what system has for this : FEA9
Forum posts: 68
For example:
// a line break
_LIT(brk, "\x2028") ;
Sorry I can't really help you about why you urdu character "\xFEA9" is not displaying
Take care,
Nikolas.
If we fall down it's so we can learn to pick ourselves up.
Forum posts: 2006
I don't have any arabic mobile but I assume that something like:
should work (and display the arabic letter Khah).
Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant
RESOURCE TBUF { buf = <1605><1585>; }
Have downloaded .pdf for urdu chars unicodes........
-------------------------------------------------------------------------
_LIT(KLetterKhah,"\x062e"); //How about multiple chars?
Forum posts: 68
_LIT(Message,"\x082\x039") <-- is this what you mean?
If we fall down it's so we can learn to pick ourselves up.
Forum posts: 5
One can store unicode string in resource file. For that :
1. open your resource file in notepad.
2. Copy ur unicode to resource.
RESOURCE TBUF resource_name
{
buf = "copy string here";
}
When u copy string to resource, u should get square boxes.
3.Save ur file in UTF8 format.
4.At the top of your resourcefile Add CHARACTER_SET UTF8 statement.
5. Read ur resource content into TBUF16<size> or HBufC* and display them.
Best of Luck,