add UTF-8 recode support, Cyrilic rus/ukr tables

Dependents:   Current_load1

Fork of TextLCD by Wim Huiskamp

TextLCD Library UTF-8 recode support, Cyrilic rus/ukr tables

Revision:
43:63e5deba31ff
Parent:
41:51a77c5a45b6
Child:
44:fd3889afbe11
--- a/TextLCD.cpp	Sun Oct 11 13:53:53 2015 +0000
+++ b/TextLCD.cpp	Tue Oct 13 21:59:04 2015 +0000
@@ -1459,7 +1459,7 @@
 
         //Update Cursor
         _column = 0;
-        _row++;
+        //_row++;
         if (_row >= rows()) {
             _row = 0;
         }
@@ -1543,11 +1543,11 @@
     char utf_low_byte;
 
     if (c>=0x80) { // UTF-8 handling
-        if (c >= 0b11000000) { //(0xc0) first UTF-8 byte
+        if (c >= 0b11000000) { //(0xc0) First UTF-8 byte
             utf_hi_char = c&0b00011111;
             return 0;
-        } else if (c<=0b10111111) { //0xbf second UTF-8 byte
-            utf_low_byte= c&0b00111111; //reset 2 hi bit (0x3f)
+        } else if (c<=0b10111111) { //0xbf Second UTF-8 byte
+            utf_low_byte= c&0b00111111; //Reset 2 hi bit (0x3f)
             utf_code=(utf_hi_char*0x40+utf_low_byte);
 
             //Recode leter not in serial table (from random table)