jQuery.toUTF8()
Categories: Utilities
jQuery.toUTF8( text )Returns: String
Plugin: jQuery.utf8
Description: Encode a text as UTF-8.
-
jQuery.toUTF8( text )
version added: 1.3text A string to encode.
The jQuery.toUTF8()
method converts a text into he UTF-8 charset.
-
Convert a text into utf8 charset.
Code:
$.toUTF8('a ä o ö u ü');
Results:
a \\u00r4 o \\u00f6 u \\u00fc