Click here to Skip to main content
11,925,730 members (57,620 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


7 bookmarked

Decoding the "Windows 1255" format

, 11 May 2009 CPOL
Rate this:
Please Sign up or sign in to vote.
An article on how to decode the "Windows 1255" format.

Decode Method


This article solves the problem of decoding the Windows 1255 encoding.


Usually, when you get Hebrew emails, the subject line is encoded in a strange way. After reading a lot of articles on the subject, I decided to rollout a decoding version of my own, which handles Base64 and plain encoding of Hebrew messages.

Using the Code

Instantiate the class with the text to decode, and use the Decode method. The static property IsWindows1255 can determine if the text is actually encoded to avoid the exception thrown by the constructor (when given a non-encoded text).

Like this:

if (Windows1255Helpers.IsWindows1255(ret))
    Windows1255Helpers helper = new Windows1255Helpers(ret);
    ret = helper.Decode();

If you have further questions, don't hesitate to send a mail. And furthermore, you can visit me (and my friends!) at our blog.

Points of Interest

I have read some specifications regarding encoding or decoding of MIME messages and subjects, and if I have missed something, please feel free to remark.

And please excuse my English if there are mistakes; I'm from Israel, and English is not my primary language.... Smile | :)


  • First version - 11.5.2009.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

maor tzivony
Israel Israel
No Biography provided

You may also be interested in...

Comments and Discussions

GeneralMy vote of 1 Pin
Howard Richards5-Aug-09 7:16
memberHoward Richards5-Aug-09 7:16 
GeneralWhere is the info Pin
Soundman32.211-May-09 22:07
memberSoundman32.211-May-09 22:07 
GeneralRe: Where is the info [modified] Pin
maor tzivony12-May-09 13:12
membermaor tzivony12-May-09 13:12 
GeneralRe: Where is the info Pin
Shani Natav13-May-09 12:32
memberShani Natav13-May-09 12:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.151126.1 | Last Updated 11 May 2009
Article Copyright 2009 by maor tzivony
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid