471,347 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,347 software developers and data experts.

Text encoding to ISO-8859-8 and English reorder?

Hi,

For a particular system I need to transfer Hebrew text with encoding
ISO-8859-8 and to flip only the English characters.

For example the text:
טקסט עברית With English ועוד עברית

Should be transfer to the system as:
טקסט עברית hsilgnE htiW ועוד עברית

I know there is something that can be done with Graphics & StringBuilder but
I have no clue how to accomplish that.

Thanks in advanced for any code that will do the work.

Regards,
Asaf

Jan 16 '06 #1
4 2191
Hello Asaf,
Hi,

For a particular system I need to transfer Hebrew text with encoding
ISO-8859-8 and to flip only the English characters.

For example the text:
טקסט עברית With English ועוד עברית
Should be transfer to the system as:
טקסט עברית hsilgnE htiW ועוד עברית
I know there is something that can be done with Graphics &
StringBuilder but I have no clue how to accomplish that.

Thanks in advanced for any code that will do the work.


Encoding doesn't matter until you write your string to a stream. You can
search through your source string buffer for all Latin only substrings (i.e.
those that consist entirely of System.Chars having values in the range of
0x41 to 0x5a, and 0x61 to 0x7a) and flip those substrings. This of cause
assumes that no Hebrew word uses Latin characters, but I guess that wouldn't
make sense anyway?

Cheers,
--
Joerg Jooss
ne********@joergjooss.de
Jan 16 '06 #2
Hello Joerg,

Can you please post some code example please?

Regards,
Asaf
"Joerg Jooss" wrote:
Hello Asaf,
Hi,

For a particular system I need to transfer Hebrew text with encoding
ISO-8859-8 and to flip only the English characters.

For example the text:
טקסט עברית With English ועוד עברית
Should be transfer to the system as:
טקסט עברית hsilgnE htiW ועוד עברית
I know there is something that can be done with Graphics &
StringBuilder but I have no clue how to accomplish that.

Thanks in advanced for any code that will do the work.


Encoding doesn't matter until you write your string to a stream. You can
search through your source string buffer for all Latin only substrings (i.e.
those that consist entirely of System.Chars having values in the range of
0x41 to 0x5a, and 0x61 to 0x7a) and flip those substrings. This of cause
assumes that no Hebrew word uses Latin characters, but I guess that wouldn't
make sense anyway?

Cheers,
--
Joerg Jooss
ne********@joergjooss.de

Jan 16 '06 #3
Hello Asaf,
Hello Joerg,

Can you please post some code example please?


Well, what part of the solution remains hard to do?

Cheers,
--
Joerg Jooss
ne********@joergjooss.de
Jan 17 '06 #4
Hi Asaf,

Thanks for posting!

I have performed some research about the issue. Since I don't know the
Hebrew, I don't understand why you just convert the sequence of English
words in current scenario. If you want to get some sample code for the
current issue, unfortunately this is out of service in the newsgroup. I
suggest you contact the Microsoft PSS department (DSW Win Globalization).
This issue is supported by PSS service.

For your reference, I attached steps to contact Microsoft PSS here: You can
contact Microsoft Product Support directly to discuss additional support
options you may have available, by contacting us at 1-(800)936-5800 or by
choosing one of the options listed at

http://support.microsoft.com/common/...gp;en-us;offer
prophone

I appreciate your understanding.

Regards,

Yuan Ren [MSFT]
Microsoft Online Support

Jan 19 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by lawrence | last post: by
27 posts views Thread by Eric | last post: by
9 posts views Thread by Andy | last post: by
9 posts views Thread by Mark | last post: by
10 posts views Thread by joelagnel | last post: by
13 posts views Thread by Martin Herbert Dietze | last post: by
1 post views Thread by Hvid Hat | last post: by
4 posts views Thread by =?ISO-8859-1?Q?Nordl=F6w?= | last post: by
reply views Thread by Ronak mishra | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.