473,378 Members | 1,522 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 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 2611
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: lawrence | last post by:
Someone on www.php.net suggested using a seems_utf8() method to test text for UTF-8 character encoding but didn't specify how to write such a method. Can anyone suggest a test that might work?...
27
by: Eric | last post by:
Assume that disk space is not an issue (the files will be small < 5k in general for the purpose of storing preferences) Assume that transportation to another OS may never occur. Are there...
40
by: Peter Row | last post by:
Hi all, Here is my problem: I have a SQL Server 2000 DB with various NVarChar, NText fields in its tables. For some stupid reason the data was inserted into these fields in UTF8 encoding. ...
9
by: Andy | last post by:
I am trying to write a for loop that will print all the ISO-Latin characters to a database. However: I am not sure exactly how to go about printing the ISO-Latin character set. Would anyone be...
9
by: Mark | last post by:
I've run a few simple tests looking at how query string encoding/decoding gets handled in asp.net, and it seems like the situation is even messier than it was in asp... Can't say I think much of the...
10
by: joelagnel | last post by:
hi friends, i've been having this confusion for about a year, i want to know the exact difference between text and binary files. using the fwrite function in c, i wrote 2 bytes of integers in...
13
by: Martin Herbert Dietze | last post by:
Hi, I need to calculate the physical length of text in a text input. The term "physical" means in this context, that I consider 7bit-Ascii as one-byte-per character. Other characters may be...
0
by: yuvalbra | last post by:
Hello , I work with asp and send email by cdonts and want to get in in 1255 ISO-Logical encoding every email i got the numbers shows backwords , i need to goto to encoding and replace to...
1
by: Hvid Hat | last post by:
Hello How should I go about marking certain words in a text? I've got a list of words: <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="Mark.xsl"?> <Words>...
4
by: =?ISO-8859-1?Q?Nordl=F6w?= | last post by:
How do I efficiently determine which possible encoding(s) a given text is in? Can I use the iconv.h api somehow? Thanks in advance, Nordlw
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.