Forcing utf8 encoding on viewing sent messages

Hi.
I have forced Mail.app to send all my messages as UTF-8 by using the well-known command:
defaults write com.apple.mail NSPreferredMailCharset "UTF-8"
That's working fine and my messages are received and viewed as UTF-8. But in Leopard, Mail exhibits the following weirdness: say I get a mail which used English (or any Latin-based script), I reply to it using Cyrillic -- everything looks fine when I write it, and the person I reply to receives it without problems as UTF-8. But when I view my own sent mail, the Cyrillic portion comes out as mumbo jumbo. When I go to Message>View Encoding, no encoding is selected, not even Automatic. When I select UTF-8 there, the message is displayed properly.
Now that's horrible, because it means that I have to fix every single sent message of mine if I want to view it properly. That can't be right.
Is there a way to force Mail.app to use UTF-8 as default encoding for viewing messages?
Thanks a lot.
Tench

The second one clearly says UTF-8 and that should normally make Mail show the text correctly. But the first one seems to indicate you are using some kind of special digital signature, and perhaps that is confusing the situation, causing Mail to apply Latin-1 or another default instead.
I only added the digital signature yesterday and the problem is not related to it -- I had the same behavior before the digital signature. Mail.app is for some reason not displaying these messages as UTF-8 by default.
I've narrowed it down a bit. If I get a UTF-8 encoded mail, and respond to it, there is absolutely no problem. But if I get a Central European charset=ISO-8859-2 mail and respond to it using Cyrillic, the mail is sent as UTF-8 (my forced default) but Mail.app gets confused when viewing my sent mail.
My workaround now is to ask my correspondent to send me UTF-8 (you can force UTF-8 in gmail for instance), I just tested it with a friend and it works.
I still find it strange that there is no way to force the viewing encoding the way one can force the outgoing mail encoding.
Thanks for your help.

Similar Messages

  • Using Verizon account, how do I view "sent" messages on phone.

    Using Verizon account, how do I view "sent" messages on iphone 6.

    Verizon Wireless Customer Support wrote:
    DanaRom,
    This is going to be easy! Just log in http://vz.to/1e948q1, click on "Send and Manage Messages from the My Device section that appears when hovering your mouse over "My Verizon" next to "Support" at the top. Please know that iMessages will not show up in our records as they use data instead of texts.
    SarahO_VZW
    Follow us on Twitter @VZWSupport
    I would be curious, saraho_vzw, is your answer only valid if you have Verizon Messages installed/activated on the iPhone 6?

  • Viewing Sent Messages

    Hello,
    I'm having a problem viewing sent messages...I get this message when I click on any message in the sent mail:
    The message from...concerning “<Unknown subject>” has not been downloaded from the server. You need to take this account online in order to download it.
    any ideas for me?
    g5   Mac OS X (10.3.9)  

    Hello gtsb.
    You have the problem described here:
    Overstuffed mailbox is unexpectedly empty
    Because of the differences between Mail 1.x and Mail 2.x, if you’re using Mac OS X 10.3 (Panther), as your profile indicates, further discussing your problem here might confuse other users with similar problems running Mac OS X 10.4 (Tiger), so please start a new topic in the Mail & Address Book - Mac OS X 10.3 & earlier forum. I or someone else will be able to better help you there.

  • Cannot view SENT messages

    Had this problem 2 yrs. ago and can't remenber what I did to resolve it. I can see who I sent e-mail messages to, but the message itself does appear any longer. Instead I get this:
    "The message from Ben Shari <[email protected]> concerning “<Unknown subject>” has not been downloaded from the server. You need to take this account online in order to download it".
    Anyone know what it means? I have a feeling it has to do with removing messages from the server which I have done (I think) in Mail Preferences but the support folks at Cogeco, my service provider couldn't be of much use when it comes to MACs
    Any ideas please?

    You’re welcome.
    is there a way to save all messages in another folder before doing a rebuild?
    If you’re referring to the messages that don’t show up properly, no. You must fix the problem first, then move the messages wherever you want. Actually, it looks like you’ve kept storing sent messages in that mailbox without having completely fixed the problem first, which is a really bad idea, as it can only make it more difficult to recover the missing messages.
    Assuming this is a POP account, proceed as follows:
    1. Quit Mail.
    2. In the Finder, go to ~/Library/Mail/POP-username@mailserver/.
    3. Locate Sent Messages.mbox and move it to the Desktop.
    4. Although Sent Messages.mbox appears as a file, it’s actually a special kind of folder (a package) that contains several files. Ctrl-Click on Sent Messages.mbox and choose Show Package Contents from the contextual menu that appears. Report the size of the mbox file contained in the mailbox package. Depending on the size of this file, Mail may or may not be able to import it in step 6.
    5. Open Mail. A new empty Sent Messages.mbox will automatically be created within the account folder, and this will let you continue using Mail normally.
    6. Do File > Import Mailboxes and follow the instructions to import the Sent Messages.mbox that’s on the Desktop. I’m not sure what the import options available in Mail 1.3 are, but you should choose Other / Standard mbox or something like that, so that Mail looks at the mbox file only (and Incomning_Mail, if present) and ignores the other files in the package.
    If Mail doesn’t let you select Sent Messages.mbox in step 5 because it’s a package instead of a plain folder, rename Sent Messages.mbox to just Sent Messages (i.e. remove the .mbox suffix) so that it becomes a normal folder, and try again.
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder, i.e. ~/Library is the Library folder within the user’s home folder.

  • Unable to view sent message from one of my email accounts

    I have two email addresses from my email server. On one of the accounts, I am unable to view the text of the messages in the sent mailbox and I get the following message:
    The message from (my email address is shown here) concerning “Insurance” has not been downloaded from the server. You need to take this account online in order to download it.
    The server says there is nothing in my sent box on the server to download. I have selected the choice in the preferences area that says to delete messages from the server "right away" when they are downloaded.

    Patrick,
    If running Tiger, see:
    http://discussions.apple.com/thread.jspa?threadID=413196
    If running 10.3.9, as your Profile says, then you likely have an "Overstuffed" Sent mailbox. See the Topic at the following link, and the topic linked from within it:
    http://discussions.apple.com/thread.jspa?threadID=121837
    and
    http://docs.info.apple.com/article.html?artnum=25812
    Ernie

  • How to set custom profiles in iphone 5 and viewing sent messsges and dialed calls seperately

    i found that i cannot set any other profiles other than silent and general is there any app to create custom profiles and also i can't view the dialed calls seperately only missed calls can be viewind seperately is there any app to overcome that problem?and also i want to view sent messages seperately in my messages option.

    These are not a features of the iPhone and iOS. No 3rd party app can provide these functions due to Apple restrictions.

  • Strange issue with imap and a blank empty sent messages folder

    So here is a weird one. I got a new computer last week, Mac mini core duo. Set everything up, synced my .Mac and it set up mail. I have been using mail, i try to view Sent Messages for one of my IMAP accounts which should have 10,200 messsages in it. I see nothing. On rebuild mailbox it goes blank. Some messages I send are stored until i rebuild mailbox and it again is empty. On my other Macs (powerbook 12" and dual G4) I am still able to view and manipulate this same accounts Sent Messages. One webmail everything still works as well. While trying to copy old messages down to the Powerbook to archive them I noticed that it was very slow, and messages which were not cached already caused the Copy to fail. I am using Courier IMAP with Maildirs and Postfix on FreeBSD as a server.

    my IMAP server uses INBOX as its root.. hence that folder only contains...
    INBOX.imapmbox
    INBOX
    However one level down in INBOX I have...
    DeSmit.imapmbox
    HealthCareSource HR.imapmbox
    SimTech.imapmbox
    Lange International.imapmbox
    Sandhill Photography.imapmbox
    Sales People.imapmbox
    Hosting.imapmbox
    Marwan.imapmbox
    Lucidics.imapmbox
    Jeorgea Beck.imapmbox
    Web Marketing.imapmbox
    Sent.imapmbox
    SEBA.imapmbox
    Merchant Accounts.imapmbox
    The Hired Pens.imapmbox
    Kuhl Therapy.imapmbox
    Keen Films.imapmbox
    PeopleVision.imapmbox
    Competition.imapmbox
    East Street Woodworking.imapmbox
    Cambium Learning.imapmbox
    Legal.imapmbox
    LFCG.imapmbox
    Mailing Lists.imapmbox
    Drafts.imapmbox
    Ipswitch.imapmbox
    Prism Scienceworks.imapmbox
    Printers.imapmbox
    Mindspark7.imapmbox
    Air Media.imapmbox
    Demios.imapmbox
    Cabem.imapmbox
    LexiPixel.imapmbox
    Apple.imapmbox
    Regent Theatre.imapmbox
    Proun Design.imapmbox
    Prospects.imapmbox
    Goodwin PR.imapmbox
    Xplana.imapmbox
    Competitive Analysis.imapmbox
    Banimon.imapmbox
    Zaid.imapmbox
    Stay In Touch.imapmbox
    Junk.imapmbox
    UI Research.imapmbox
    Faxes.imapmbox
    Dewey Nichols.imapmbox
    StrideRite.imapmbox
    Future Works.imapmbox
    Franklin Cafe.imapmbox
    Epsilon.imapmbox
    CitySoft.imapmbox
    Bearak.imapmbox
    Pridgeon Design.imapmbox
    BDS.imapmbox
    Highland MBP.imapmbox
    Create TV.imapmbox
    Crystal Clean.imapmbox
    Longs Jewelers.imapmbox
    Lollipop.imapmbox
    AFT.imapmbox
    Wholen.imapmbox
    Peppercoin.imapmbox
    RocketShop.imapmbox
    Rocket North.imapmbox
    Barrister Books.imapmbox
    Venture Capital Fund of NE.imapmbox
    bodygard.imapmbox
    Blakely Project.imapmbox
    Comm Promo.imapmbox
    Judith Aronson.imapmbox
    Vendors.imapmbox
    Trash.imapmbox
    Accounts.imapmbox
    Agena.imapmbox
    Manifesto.imapmbox
    Portfolios.imapmbox
    Progressive Roofing.imapmbox
    Process & Deliverables.imapmbox
    Advertising.imapmbox
    Chris Zikakis.imapmbox
    Mojo Marketing.imapmbox
    Lauer Learning.imapmbox
    NOME.imapmbox
    Nantucket Kneepants.imapmbox
    NEMO.imapmbox
    Nickelsen Partners.imapmbox
    Essential.imapmbox
    Lawler Kang.imapmbox
    Accounting.imapmbox
    Compuworks.imapmbox
    Inside of Sent.imapbox we have...
    Messages
    Info.plist
    And inside of Messages are the 2 messages I sent today after testing another rebuild command...
    29601.emlx
    29193.emlx

  • Is there a way to view the messages I sent along with files in Adobe Send?

    Is there a way to view the messages I sent along with files in Adobe Send?

    Too bad...I wish that feature was still there that was in SendNow...I also have to go and get the recipients email each time I send a file instead of Send remembering the email addresses I have sent to in the past.
    Are any of the great features of SendNow going to be brought over into Send? Or are they just gone...I am a paying CC user...just curious what's going on at Adobe...Thanks for your very quick response though...I guess my message content is gone.

  • View Adressee Sent Messages

    Hi, using Apple Mail, I cant figure out how to view the Adressee in Sent Messages. What I see is the Sender and that is not of much use because it is Me. Who can tell me how to configure Mail so that I see the Addressee (and still sort by Date)? Thanks.

    Are you using OSX Lion or Snow Leopard (OSX 10.7 or 10.6)?  You have posted your question in the Snow Leopard forum, but it seems like you may be using Lion???
    Apple has seen fit to change the mail program in Lion.  I don't use Lion so I can't help you if you are.  You may want to repost your question on the Lion forum.
    Mail's menu in Snow Leopard looks like this:
    IMAP or POP - doesn't effect menu.

  • Is there any way i can let another iphone user view my recieved and sent messages?

    Is there any way i can let another iphone user view my recieved and sent messages?

    Of course. Just show them your phone screen, and let them browse through your messages - the same way you would do so yourself.

  • View sent text messages

    Does anybody have a clue as to how to view a sent text message on I-phone.
    thanks

    All recieved and sent text messages with each person or number are grouped together by each person or number - in a conversation format used with IM clients.
    All sent messages in a conversation or by each person or number have a green background. All recieved messages have a gray background.

  • Can't find view menu, can't access any sent messages. Really stinks.

    It really stinks can't access my sent messages. Please, put View Menu back where it was. View Menu made easy for user like me who have little computer knowledge. What you did really sucks bigtime.
    Bryce

    This is how Thunderbird works.
    When you get it it has no menu bar.
    <img alt="" src="https://support.cdn.mozilla.net/media/uploads/images/2014-08-09-17-05-10-29035c.png">
    Pressing Alt or F10 make he following happen
    <img alt="" src="https://support.cdn.mozilla.net/media/uploads/images/2014-08-09-17-05-18-8c6d27.png">
    These key strokes and their results are not Thunderbird either. They are standard in your operating system. And most certainly in the case of the Windows 7 64bit both you and I are using.
    Airmail tells you to select a menu
    <img alt="" src="https://support.cdn.mozilla.net/media/uploads/images/2014-08-09-17-05-27-ee88ac.png">
    When you hover over it another fly out menu appears
    <img alt="" src="https://support.cdn.mozilla.net/media/uploads/images/2014-08-09-17-05-35-f7edbb.png">
    Yet you say this does not happen which indicates more wrong than just a missing menu.
    However there is vet another way to get a menu bar. You right click the toolbar between the Quickfilter Icon and the Menu Icon and select the menu bar from that menu.
    <img alt="" src="https://support.cdn.mozilla.net/media/uploads/images/2014-08-09-17-15-41-49cd6f.png">
    Now that there are pictures, do any of these methods work, or do we need to look deeper into your installation.

  • Sent messages can't be viewed

    My sent messages all say, "The message from ... concerning ... has not been downloaded from the server. You need to take this account online in order to download it."
    When that first started, they would eventually appear. No longer, and now it has spread to all the messages in the Sent Mailbox. My laptop uses the same router, and does not have that problem.
    Can anyone help me?

    If you’re running Mac OS X 10.3 (Panther), as your profile indicates, you probably have the problem described here:
    Overstuffed mailbox is unexpectedly empty
    If that’s the problem, however, at this point doing what the article suggests won’t work. You should have addressed the problem when it started to happen.
    Because of the differences between Mail 1.x and Mail 2.x, further discussing your problem here might confuse other users with apparently similar problems using Mac OS X 10.4 (Tiger), so please start a new topic in the Mail & Address Book - Mac OS X 10.3 & earlier forum, or just look for other threads discussing the same problem. This is actually a FAQ in that forum.

  • Force jvm to use UTF8 encoding for properties?

    hi,
    my problem is i cannot display turkish characters that are retrieved from properties file [(key, value) pair].The value may contain turkish characters.
    reference : java toc
    "..When saving properties to a stream or loading them from a stream, the ISO 8859-1 character encoding is used. For characters that cannot be directly represented in this encoding, Unicode escapes are used; however, only a single 'u' character is allowed in an escape sequence..."
    instead of iso 8859-1 or directly representing non-conforming characters in the form of UTF8 encoding , i want to use UTF8 . i dont know is there a way to enforce the encoding to UTF8 .is it possible ?
    note : javac -encoding or java -Djava.encoding has no use..
    thanx in advance

    Hi,
    I did a lot of testing with the method of my last posting and ran into the following problem: each character, that is not available in iso 8859-1 is discarded and replaced by a '?'. So when e.g. loading arabic characters you get just "?????" as your property's value.
    The only possibility to enable other encodings of Property Files is to replace the encoding of the reader to one that is better suited. So I created a customized class, that inherits from java.util.Properties, and supports loading and storing to any encoding. This class I give here:
    * Properties.java
    * Created on 11. Juni 2003, 14:08
    package xy;
    * The <code>Properties</code> class represents a persistent set of
    * properties. The <code>Properties</code> can be saved to a stream
    * or loaded from a stream. Each key and its corresponding value in
    * the property list is a string.
    * <p>
    * A property list can contain another property list as its
    * "defaults"; this second property list is searched if
    * the property key is not found in the original property list.
    * <p>
    * Because <code>Properties</code> inherits from <code>Hashtable</code>, the
    * <code>put</code> and <code>putAll</code> methods can be applied to a
    * <code>Properties</code> object.  Their use is strongly discouraged as they
    * allow the caller to insert entries whose keys or values are not
    * <code>Strings</code>.  The <code>setProperty</code> method should be used
    * instead.  If the <code>store</code> or <code>save</code> method is called
    * on a "compromised" <code>Properties</code> object that contains a
    * non-<code>String</code> key or value, the call will fail.
    * <p>
    * <a name="encoding"></a>
    * When saving properties to a stream or loading them from a stream, the
    * ISO 8859-1 character encoding can be used. For characters that cannot be directly
    * represented in this encoding,
    * <a href="http://java.sun.com/docs/books/jls/html/3.doc.html#100850">Unicode escapes</a>
    * are used; however, only a single 'u' character is allowed in an escape sequence.
    * The native2ascii tool can be used to convert property files to and from
    * other character encodings.
    * </p>
    * <p>
    * This Properties class is an extension of the default properties class an supports the
    * loading and saving from and into other encodings than ISO 8859-1.
    * </p>
    * @see <a href="../../../tooldocs/solaris/native2ascii.html">native2ascii tool for Solaris</a>
    * @see <a href="../../../tooldocs/win32/native2ascii.html">native2ascii tool for Windows</a>
    * @author  Gregor Kappler, extended the class of JDK by
    * @author  Arthur van Hoff
    * @author  Michael McCloskey
    * @version 1.64, 06/26/00
    * @since   JDK1.0
    public class Properties extends java.util.Properties {
        private static final String keyValueSeparators = "=: \t\r\n\f";
        private static final String strictKeyValueSeparators = "=:";
        private static final String specialSaveChars = "=: \t\r\n\f#!";
        private static final String whiteSpaceChars = " \t\r\n\f";
        /** Creates a new instance of Properties */
        public Properties() {
         * Reads a property list (key and element pairs) from the input stream.
         * The stream is assumed to be in the specified character encoding.
         * <p>
         * Every property occupies one line of the input stream. Each line
         * is terminated by a line terminator (<code>\n</code> or <code>\r</code>
         * or <code>\r\n</code>). Lines from the input stream are processed until
         * end of file is reached on the input stream.
         * <p>
         * A line that contains only whitespace or whose first non-whitespace
         * character is an ASCII <code>#</code> or <code>!</code> is ignored
         * (thus, <code>#</code> or <code>!</code> indicate comment lines).
         * <p>
         * Every line other than a blank line or a comment line describes one
         * property to be added to the table (except that if a line ends with \,
         * then the following line, if it exists, is treated as a continuation
         * line, as described
         * below). The key consists of all the characters in the line starting
         * with the first non-whitespace character and up to, but not including,
         * the first ASCII <code>=</code>, <code>:</code>, or whitespace
         * character. All of the key termination characters may be included in
         * the key by preceding them with a \.
         * Any whitespace after the key is skipped; if the first non-whitespace
         * character after the key is <code>=</code> or <code>:</code>, then it
         * is ignored and any whitespace characters after it are also skipped.
         * All remaining characters on the line become part of the associated
         * element string. Within the element string, the ASCII
         * escape sequences <code>\t</code>, <code>\n</code>,
         * <code>\r</code>, <code>\\</code>, <code>\"</code>, <code>\'</code>,
         * <code>\  </code>  (a backslash and a space)
         * are recognized and converted to single
         * characters. Moreover, if the last character on the line is
         * <code>\</code>, then the next line is treated as a continuation of the
         * current line; the <code>\</code> and line terminator are simply
         * discarded, and any leading whitespace characters on the continuation
         * line are also discarded and are not part of the element string. <br>
         * Note:
         * <code>\u</code><i>xxxx</i> is not supported if the encoding is not
         * ISO 8859-1!
         * <p>
         * As an example, each of the following four lines specifies the key
         * <code>"Truth"</code> and the associated element value
         * <code>"Beauty"</code>:
         * <p>
         * <pre>
         * Truth = Beauty
         *     Truth:Beauty
         * Truth               :Beauty
         * </pre>
         * As another example, the following three lines specify a single
         * property:
         * <p>
         * <pre>
         * fruits                    apple, banana, pear, \
         *                                  cantaloupe, watermelon, \
         *                                  kiwi, mango
         * </pre>
         * The key is <code>"fruits"</code> and the associated element is:
         * <p>
         * <pre>"apple, banana, pear, cantaloupe, watermelon, kiwi, mango"</pre>
         * Note that a space appears before each <code>\</code> so that a space
         * will appear after each comma in the final result; the <code>\</code>,
         * line terminator, and leading whitespace on the continuation line are
         * merely discarded and are <i>not</i> replaced by one or more other
         * characters.
         * <p>
         * As a third example, the line:
         * <p>
         * <pre>cheeses
         * </pre>
         * specifies that the key is <code>"cheeses"</code> and the associated
         * element is the empty string.<p>
         * @param      inStream   the input stream.
         * @exception  IOException  if an error occurred when reading from the
         *               input stream.
        public synchronized void load(java.io.InputStream inStream, java.nio.charset.Charset encoding) throws java.io.IOException {
            if (encoding.equals (encoding.forName("8859_1"))) {
                super.load (inStream);
                return;
            java.io.BufferedReader in = new java.io.BufferedReader(new java.io.InputStreamReader(inStream, encoding));
         while (true) {
                // Get next line
                String line = in.readLine();
                if (line == null)
                    return;
                if (line.length() > 0) {
                    // Continue lines that end in slashes if they are not comments
                    char firstChar = line.charAt(0);
                    if ((firstChar != '#') && (firstChar != '!')) {
                        while (continueLine(line)) {
                            String nextLine = in.readLine();
                            if(nextLine == null)
                                nextLine = "";
                            String loppedLine = line.substring(0, line.length()-1);
                            // Advance beyond whitespace on new line
                            int startIndex=0;
                            for(startIndex=0; startIndex<nextLine.length(); startIndex++)
                                if (whiteSpaceChars.indexOf(nextLine.charAt(startIndex)) == -1)
                                    break;
                            nextLine = nextLine.substring(startIndex,nextLine.length());
                            line = new String(loppedLine+nextLine);
                        // Find start of key
                        int len = line.length();
                        int keyStart;
                        for(keyStart=0; keyStart<len; keyStart++) {
                            if(whiteSpaceChars.indexOf(line.charAt(keyStart)) == -1)
                                break;
                        // Blank lines are ignored
                        if (keyStart == len)
                            continue;
                        // Find separation between key and value
                        int separatorIndex;
                        for(separatorIndex=keyStart; separatorIndex<len; separatorIndex++) {
                            char currentChar = line.charAt(separatorIndex);
                            if (currentChar == '\\')
                                separatorIndex++;
                            else if(keyValueSeparators.indexOf(currentChar) != -1)
                                break;
                        // Skip over whitespace after key if any
                        int valueIndex;
                        for (valueIndex=separatorIndex; valueIndex<len; valueIndex++)
                            if (whiteSpaceChars.indexOf(line.charAt(valueIndex)) == -1)
                                break;
                        // Skip over one non whitespace key value separators if any
                        if (valueIndex < len)
                            if (strictKeyValueSeparators.indexOf(line.charAt(valueIndex)) != -1)
                                valueIndex++;
                        // Skip over white space after other separators if any
                        while (valueIndex < len) {
                            if (whiteSpaceChars.indexOf(line.charAt(valueIndex)) == -1)
                                break;
                            valueIndex++;
                        String key = line.substring(keyStart, separatorIndex);
                        String value = (separatorIndex < len) ? line.substring(valueIndex, len) : "";
                        // Convert then store key and value
                        key = loadConvert(key);
                        value = loadConvert(value);
                        put(key, value);
         * Writes this property list (key and element pairs) in this
         * <code>Properties</code> table to the output stream in a format suitable
         * for loading into a <code>Properties</code> table using the
         * <code>load</code> method.
         * The stream is written using the ISO 8859-1 character encoding.
         * <p>
         * Properties from the defaults table of this <code>Properties</code>
         * table (if any) are <i>not</i> written out by this method.
         * <p>
         * If the header argument is not null, then an ASCII <code>#</code>
         * character, the header string, and a line separator are first written
         * to the output stream. Thus, the <code>header</code> can serve as an
         * identifying comment.
         * <p>
         * Next, a comment line is always written, consisting of an ASCII
         * <code>#</code> character, the current date and time (as if produced
         * by the <code>toString</code> method of <code>Date</code> for the
         * current time), and a line separator as generated by the Writer.
         * <p>
         * Then every entry in this <code>Properties</code> table is written out,
         * one per line. For each entry the key string is written, then an ASCII
         * <code>=</code>, then the associated element string. Each character of
         * the element string is examined to see whether it should be rendered as
         * an escape sequence. The ASCII characters <code>\</code>, tab, newline,
         * and carriage return are written as <code>\\</code>, <code>\t</code>,
         * <code>\n</code>, and <code>\r</code>, respectively. Characters less
         * than <code>\u0020</code> and characters greater than
         * <code>\u007E</code> are written as <code>\u</code><i>xxxx</i> for
         * the appropriate hexadecimal value <i>xxxx</i>. Leading space characters,
         * but not embedded or trailing space characters, are written with a
         * preceding <code>\</code>. The key and value characters <code>#</code>,
         * <code>!</code>, <code>=</code>, and <code>:</code> are written with a
         * preceding slash to ensure that they are properly loaded.
         * <p>
         * After the entries have been written, the output stream is flushed.  The
         * output stream remains open after this method returns.
         * @param   out      an output stream.
         * @param   header   a description of the property list.
         * @exception  IOException if writing this property list to the specified
         *             output stream throws an <tt>IOException</tt>.
         * @exception  ClassCastException  if this <code>Properties</code> object
         *             contains any keys or values that are not <code>Strings</code>.
         * @exception  NullPointerException  if <code>out</code> is null.
         * @since 1.2
        public synchronized void store(java.io.OutputStream out, java.nio.charset.Charset encoding, String header)
        throws java.io.IOException
            if (encoding.equals (encoding.forName("8859_1"))) {
                super.store (out,header);
                return;
            java.io.BufferedWriter awriter;
            awriter = new java.io.BufferedWriter(new java.io.OutputStreamWriter(out,encoding));
            if (header != null)
                writeln(awriter, "#" + header);
            writeln(awriter, "#" + new java.util.Date().toString());
            for (java.util.Enumeration e = keys(); e.hasMoreElements();) {
                String key = (String)e.nextElement();
                String val = (String)get(key);
                key = saveConvert(key, true);
             /* No need to escape embedded and trailing spaces for value, hence
              * pass false to flag.
                val = saveConvert(val, false);
                writeln(awriter, key + "=" + val);
            awriter.flush();
         * changes special saved chars to their original forms
        private String loadConvert (String theString) {
            char aChar;
            int len = theString.length();
            StringBuffer outBuffer = new StringBuffer(len);
            for(int x=0; x<len; ) {
                aChar = theString.charAt(x++);
                if (aChar == '\\') {
                    aChar = theString.charAt(x++);
                    if (aChar == 't') aChar = '\t';
                    else if (aChar == 'r') aChar = '\r';
                    else if (aChar == 'n') aChar = '\n';
                    else if (aChar == 'f') aChar = '\f';
                    else if (aChar == '\\') aChar = '\\';
                    else if (aChar == '\"') aChar = '\"';
                    else if (aChar == '\'') aChar = '\'';
                    else if (aChar == ' ') aChar = ' ';
                    else
                        throw new IllegalArgumentException ("error in Encoding: '\\"+aChar+" not supported");
                    outBuffer.append(aChar);
                } else
                    outBuffer.append(aChar);
            return outBuffer.toString();
         * writes out any of the characters in specialSaveChars
         * with a preceding slash
        private String saveConvert(String theString, boolean escapeSpace) {
            int len = theString.length();
            StringBuffer outBuffer = new StringBuffer(len*2);
            for(int x=0; x<len; x++) {
                char aChar = theString.charAt(x);
                switch(aChar) {
              case ' ':
                  if (x == 0 || escapeSpace)
                   outBuffer.append('\\');
                  outBuffer.append(' ');
                  break;
                    case '\\':outBuffer.append('\\'); outBuffer.append('\\');
                              break;
                    case '\t':outBuffer.append('\\'); outBuffer.append('t');
                              break;
                    case '\n':outBuffer.append('\\'); outBuffer.append('n');
                              break;
                    case '\r':outBuffer.append('\\'); outBuffer.append('r');
                              break;
                    case '\f':outBuffer.append('\\'); outBuffer.append('f');
                              break;
                    default:
    //                    if ((aChar < 0x0020) || (aChar > 0x007e)) {
    //                        outBuffer.append(aChar);
    //                    } else {
                            if (specialSaveChars.indexOf(aChar) != -1)
                                outBuffer.append('\\');
                            outBuffer.append(aChar);
            return outBuffer.toString();
         * Returns true if the given line is a line that must
         * be appended to the next line
        private boolean continueLine (String line) {
            int slashCount = 0;
            int index = line.length() - 1;
            while((index >= 0) && (line.charAt(index--) == '\\'))
                slashCount++;
            return (slashCount % 2 == 1);
        private static void writeln(java.io.BufferedWriter bw, String s) throws java.io.IOException {
            bw.write(s);
            bw.newLine();
    }I hope you can use this class for your needs as I can. For me it supports any characters so far. If you find some bugs on it, let me know
    Regards,
    Gregor Kappler

  • Off line viewing of sent messages stored in ICloud.

    I would like to store sent messages on the server but also keep a copy on my mac for offline usage.  Is this possible?

    Hi Peter
    No unfortunately I didn't find a solution. I think it's a problem of GMail because this happens also in the webmail of my google account. So Mail is not the problem.
    Other strange behaviour, my sent messages are duplicated in the draft box.
    I didn't have time to go to my account in line yet.
    I think the problem must be solved in your Gmail account on the web.
    I let you know if it can be resolved there
    Cathy

Maybe you are looking for

  • Advise on how to manage ghost colors

    Hello, I've attached a picture for which I would like some advice. There is a blue shadow around the edges of the flower. Could someone explain why this happens and if there is a way in Aperture to remove it? Thank you.

  • Difference between SOAP adapter & WebService Adapter

    Hi I am trying to consume an external REST based webservice. So, do i have to use SOAP adapter or a web service adapter?? What is the difference between the two?? Pls explain. I am using XI7.10 Regards Chandra Sekhar

  • Weblogic Server6.1 administration console

    Hi, I have just installed weblogic6.1 with sp2 on windows 2000.I am not able to view the adminstration console.The dialog box for username and password appears,but once i click OK the browser window disppears.Can someone help me with this?? Thanks Ra

  • ALV WD no-sign?

    Hi all, Where can I set the no-sign option in ALV for Web Dynpro Abap? I've looked at the methods of cl_salv_wd_config_table and also tried search (Google and SDN) without sucsess. Any help is appreciated. Thanks in advance! Regards, Charles

  • I hate wasting time and bandwidth to download updates from the stupid cloud.

    This new method of distributing software is not better... it's more laborious and time consuming and quite frankly a royal pain. Because it takes so ridiculously long, I haven't been able to download the entire CC suite AND actually do my work. I wis