Hi all.

I'm trying to fix extension worktrek, becase it isn't capable to display
text in russian

some code:

       function setTasks (tasks) {
         chrome.browserAction.setBadgeText({text: String(tasks.length)});
            if (tasks.length > 0) {
                var title = 'Todo:';
                for (var i = 1; i <= tasks.length; i ++) {
                    title += '\n' + i + ') ' + tasks[i -
1].firstChild.nodeValue;
                }
title.toLowerCase();
                chrome.browserAction.setBadgeBackgroundColor({color:
active_color});
                chrome.browserAction.setTitle({title: title});
            } else {
             chrome.browserAction.setBadgeBackgroundColor({color:
inactive_color});
             chrome.browserAction.setTitle({title: 'No tasks'});
            }
        }
If  $title or in @tasks  have russian word(s) i'll have after pointing on
extension icon all of them replaced with squares and some.. symbols.

tried to add
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
to background.html, but no love

seems all text was converted from 2byte to 1byte codepage. donno really, but
english text readable.

explanation or example of international extension would be nice.

p.s. using 4.0.237.0 Chrome portable

--

You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=.


Reply via email to