define(["Ti/_/lang"],function(e){var n=String.fromCharCode,r=128;return e.setObject("Ti._.encoding",{utf8encode:function(e){for(var t,e=e.replace(/\r\n/g,"\n"),u=0,h=e.length,o=[];h>u;)t=e.charCodeAt(u++),r>t?o.push(n(t)):t>=r&&2048>t?(o.push(n(t>>6|192)),o.push(n(63&t|r))):(o.push(n(t>>12|224)),o.push(n(t>>6&63|r)),o.push(n(63&t|r)));return o.join("")},utf8decode:function(e){for(var t,u,h=[],o=0,c=e.length;c>o;)t=e.charCodeAt(o),r>t?(h.push(n(t)),o++):(u=e.charCodeAt(o+1),t>191&&224>t?(h.push(n((31&t)<<6|63&u)),o+=2):(h.push(n((15&t)<<12|(63&u)<<6|63&e.charCodeAt(o+2))),o+=3));return h.join("")}})});