Changeset f75385


Ignore:
Timestamp:
Dec 9, 2007, 1:25:18 PM (14 years ago)
Author:
rene <rene@…>
Branches:
master
Children:
eb8a8e
Parents:
12d9a5d
Message:

was broken after adding UTF8 support. should work now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chrome/content/v_identity/vI_getHeader.js

    r12d9a5d rf75385  
    114114                    hdr.setStringProperty(vI_getHeader.headerToSearch[index].headerNameToStore,vI_getHeader.unicodeConverter.ConvertFromUnicode(value) + vI_getHeader.unicodeConverter.Finish());
    115115
    116                     storedValue = hdr.getProperty(vI_getHeader.headerToSearch[index].headerNameToStore,value)
     116                    storedValue = hdr.getProperty(vI_getHeader.headerToSearch[index].headerNameToStore)
    117117                    storedConvValue = vI_getHeader.unicodeConverter.ConvertToUnicode(storedValue)
    118118                    vI_notificationBar.dump(" ...stored as '" + storedConvValue + "'");
     
    157157        vI_getHeader.messenger = vI_getHeader.messenger.QueryInterface(Components.interfaces.nsIMessenger);
    158158        vI_getHeader.strings = document.getElementById("vIdentBundle");
     159       
     160        vI_getHeader.unicodeConverter.charset = "UTF-8";
    159161    }
    160162}
     
    165167            .getService(Components.interfaces.nsIPrefService)
    166168            .getBranch(null),
     169
     170    unicodeConverter : Components.classes["@mozilla.org/intl/scriptableunicodeconverter"]
     171            .createInstance(Components.interfaces.nsIScriptableUnicodeConverter),
    167172           
    168173    addedHeaders : [],
     
    173178        vI_notificationBar.dump("## vI_prepareHeader: init\n");
    174179        if (vI_prepareHeader.addExtraHeader()) vI_prepareHeader.addObserver();
    175         vI_getHeader.unicodeConverter.charset = "UTF-8";
    176180    },
    177181   
     
    200204    addExtraHeader : function() {
    201205        vI_notificationBar.dump("## vI_prepareHeader: addExtraHeader\n");
    202         var header_list = vI_getHeader.unicodeConverter.ConvertToUnicode(vI_prepareHeader.prefroot.getCharPref("extensions.virtualIdentity.smart_reply_headers")).split(/\n/)
     206        vI_prepareHeader.unicodeConverter.charset = "UTF-8";
     207        var header_list = vI_prepareHeader.unicodeConverter.ConvertToUnicode(vI_prepareHeader.prefroot.getCharPref("extensions.virtualIdentity.smart_reply_headers")).split(/\n/)
    203208        try {
    204209            var extraHdrs = " " +
Note: See TracChangeset for help on using the changeset viewer.