Convert UTF-8 to ASCII

txt, ok = util.u8a(utxt, [ud])

Convert UTF-8 to ASCII.

Parameter Type Description
utxt string UTF-8 encoded string
ud string Value to use for any undefined characters (Default = '?')
Returns Type Description
txt string ASCII string
ok boolean True if the UTF-8 was properly formed