Subversion Repositories eFlore/Applications.cel

Rev

Rev 2737 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2737 Rev 2806
Line 623... Line 623...
623
		if (!!($wnd.navigator && $wnd.navigator.language)) {
623
		if (!!($wnd.navigator && $wnd.navigator.language)) {
624
			lang = window.navigator.language;
624
			lang = window.navigator.language;
625
		}
625
		}
626
		return lang;
626
		return lang;
627
	}-*/;
627
	}-*/;
-
 
628
		
-
 
629
	public static native String utf8ToB64(String str) /*-{
-
 
630
		return window.btoa(unescape(encodeURIComponent( str )));
-
 
631
	}-*/;
-
 
632
 
-
 
633
	public static native String b64ToUtf8(String str) /*-{
-
 
634
		return decodeURIComponent(escape(window.atob( str )));
-
 
635
	}-*/;
628
}
636
}