convert to ASCII(text a, [converttype b], [upper limit c])


Converts a non-ASCII text to ASCII as much as possible. The conversion can take place with different conversion modes.

Type

Conversion Type

convert

If known a non-ASCII character will be replaced by it's Unicode base character. If no base character is known, the character will be removed.

remove

Non-ASCII-characters are removed.

Description of Parameters

Parameter

Description

a

The text to be converted.

b

(optional) Conversion Type. Default: convert.

c

(optional) Limit until when no conversion should take place. Default: 128.

Examples

Parameter a

Parameter b

Parameter c

Result

Schönstraße costs 1 Million €

Schonstrasse costs 1 Million

Schönstraße costs 1 Million €

convert

Schonstrasse costs 1 Million

Schönstraße costs 1 Million €

convert

128

Schonstrasse costs 1 Million

Schönstraße costs 1 Million €

convert

256

Schönstraße costs 1 Million

Schönstraße costs 1 Million €

convert

65536

Schönstraße costs 1 Million €

Schönstraße costs 1 Million €

remove

128

Schnstrae costs 1 Million