local8BitToUtf8

Top  Previous  Next

Definition

utf8Str = string.local8BitToUtf8 ( local8BitStr )

 

Name

Type

Description

local8BitStr

string

Uses encoding most suitable for the current locale.

utf8Str

string

UTF-8 encoded string.

Example

local s = 'René'

print(s)

= string.local8BitToUtf8(s)

print(s)

 

This will print:

Tue Dec 31 14:18:44 2013        Ren�

Tue Dec 31 14:18:44 2013        René