diff --git a/apps/plugins/viewer.c b/apps/plugins/viewer.c old mode 100644 new mode 100755 index 7e03c55..2b82961 --- a/apps/plugins/viewer.c +++ b/apps/plugins/viewer.c @@ -447,8 +447,10 @@ unsigned char* get_ucs(const unsigned char* str, unsigned short* ch) rb->iso_decode(str, utf8_tmp, prefs.encoding, count); rb->utf8decode(utf8_tmp, ch); + if (*str < 0x80 || prefs.encoding < SJIS) + return (unsigned char*)str+1; #ifdef HAVE_LCD_BITMAP - if ((prefs.encoding == SJIS && *str > 0xA0 && *str < 0xE0) || prefs.encoding < SJIS) + if (prefs.encoding == SJIS && *str > 0xA0 && *str < 0xE0) return (unsigned char*)str+1; else #endif