Notices

Windows Mobile 5 No more Magneto!

Reply
 
LinkBack Thread Tools
Old 04-27-07, 12:35 AM   #1 (permalink)
Aximsite Prospect
 
Join Date: Apr 2007
Posts: 11
Thanked 0 Times in 0 Posts
Wm5 Encoding

hi expert
i'm winodws mobile programmer
my language is not english then i use my country language gor my applications

when i run application on windows mobile 5 emulator my text used in my program doesn't show in normally foemat
all of my text had been replays with one rectangle for each character

what is the windows mobile encoding?
and how can i found soulution of this problem?

regards
kiani,mahdi
kiani.mehdi is offline   Reply With Quote
Sponsor Ads
Old 04-29-07, 08:44 PM   #2 (permalink)
Aximsite Minor League
 
Join Date: Jul 2006
Location: Washington
Posts: 157
Device: Moto Q 9m
Carrier: Verison!
Thanked 0 Times in 0 Posts
The encoding is unicode, a good way to do it is to put an L in front of your string, for example L"Hello World" instead of "Hello World"

The L makes the string unicode.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- My Website

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


I don't believe in atheists therefore atheists don't exist.
Clegs is offline   Reply With Quote
Old 04-30-07, 08:41 AM   #3 (permalink)
Aximsite Prospect
 
Join Date: Apr 2007
Posts: 11
Thanked 0 Times in 0 Posts
Originally Posted by Clegs View Post
The encoding is unicode, a good way to do it is to put an L in front of your string, for example L"Hello World" instead of "Hello World"

The L makes the string unicode.

dear Clegs

i insert the L front of my text bu the compiler trow an exception

my code is

private void Form1_Load(object sender, EventArgs e)
{
this.Text = L" some text here ";
}


and I get this error

the name L does not in the current context

i dont debug and run my app
kiani.mehdi is offline   Reply With Quote
Old 04-30-07, 09:12 AM   #4 (permalink)
Aximsite All Star
 
DotanCohen's Avatar
Super Member
 
Join Date: Jun 2005
Location: Haifa
Posts: 712
Thanked 1 Time in 1 Post
Clegs, where did you get the information that the encoding is Unicode? At least on WM2003se (x50v) my encoding seems to be (for Hebrew) cp1255, which is logical as that is a Microsoft encoding.

Dotan Cohen

http://lyricslist.com/lyrics/lyrics/...e_machine.html
http://what-is-what.com/what_is/java.html
DotanCohen is offline   Reply With Quote
Old 04-30-07, 01:24 PM   #5 (permalink)
Aximsite Minor League
 
Join Date: Jul 2006
Location: Washington
Posts: 157
Device: Moto Q 9m
Carrier: Verison!
Thanked 0 Times in 0 Posts
oh, you're doing it in .net, I thought you were talking about a native c++ project.

For dot net just use this.Text = "Hello world"

oh, maybe that is your code, but for English everything is in unicode (I write my strings for my programs in unicode and it works just fine). If it is not unicode then it is something VERY close.

But when programming in dot net you don't have to worry about character encoding for strings, it does that for you.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- My Website

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


I don't believe in atheists therefore atheists don't exist.
Clegs is offline   Reply With Quote
Old 04-30-07, 11:07 PM   #6 (permalink)
Aximsite Prospect
 
Join Date: Apr 2007
Posts: 11
Thanked 0 Times in 0 Posts
Originally Posted by Clegs View Post
oh, you're doing it in .net, I thought you were talking about a native c++ project.

For dot net just use this.Text = "Hello world"

oh, maybe that is your code, but for English everything is in unicode (I write my strings for my programs in unicode and it works just fine). If it is not unicode then it is something VERY close.

But when programming in dot net you don't have to worry about character encoding for strings, it does that for you.
yes,i'm working on .net
for my english text i don't have any problem
my problem ocure when i use some text in outher language format such as persian

and note that i run my program on windows mobile 5 emulator inside the .net

and my problem didn't solved yet

and about my anouther question
i found some freeware prgram and download them
i wanna to install the on windows mobile 5 emulator
ibecause i don't have any reale pocket pc or any phone that windows mobile was installed on it

thanks
regards
kiani
kiani.mehdi is offline   Reply With Quote
Old 05-07-07, 03:51 AM   #7 (permalink)
Aximsite Rookie
 
kauz's Avatar
DAP Site StaffDAP Site StaffDAP Site Reviewer
 
Join Date: Sep 2003
Location: Germany
Posts: 24
Thanked 1 Time in 1 Post
Normaly WM5/.net can work with Unicode (utf-8). So there isn't the problem. Is it possible, that the emulator can't get the foreign font?
As you dev with .net, you can look up the MS-pages for "culture".

greets
kauz
kauz is offline   Reply With Quote
Old 05-07-07, 10:50 AM   #8 (permalink)
Aximsite All Star
 
srf506's Avatar
 
Join Date: Jul 2003
Location: Orlando, FL
Posts: 593
Thanked 0 Times in 0 Posts
I believe the emulator is only in English. I'm unsure as to how you get foreign character sets loaded in it either.
srf506 is offline   Reply With Quote
Reply

Tags
encoding, wm5

Sponsor Ads

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
AVC Encoding scarpad Multimedia 5 01-10-06 02:57 PM
Encoding .ogm to .avi Gokuu_Elemental Multimedia 3 09-26-05 11:19 AM
Encoding AVI for PPC with Mac? drj400m Multimedia 7 07-12-05 08:57 PM
MP3 encoding Ludvik X30 / X3 / X3i Forums 2 11-12-04 01:52 PM
Encoding to WMV Enk1du Multimedia 7 08-28-04 10:05 PM


All times are GMT -5. The time now is 11:28 AM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright © 2003-09 LeckMedia, LLC