Skip to content

ProtoString toLatin() Method

Seth Clydesdale edited this page Jun 13, 2015 · 3 revisions

<< Back to Conversion Methods

Example

Converting a string to basic latin.

'Crème à l\'Orange'.toLatin(); // returns 'Creme a l'Orange'

'Bonne journée et à bientôt !'.toLatin(); // returns 'Bonne journee et a bientot !'

Description

The toLatin method converts accented and some special characters to basic latin. It can be used to convert text input by users for an accurate comparison, or to simplify the string with basic characters.

Syntax

String.toLatin();
Clone this wiki locally