Skip to content

Method locale_to_ascii

marufcetin edited this page Sep 1, 2026 · 1 revision

Method: locale_to_ascii()

Turkce Dokumantasyon | English Documentation

Category: Locale & Multilingual Methods
Submodule: AmberDB::Locale
Entry Type: ASCII Transliteration


1. Definition and Overview

locale_to_ascii() transliterates accented, localized Unicode text into clean 7-bit ASCII strings based on the active language's phonetic mapping rules. Ideal for generating SEO URL slugs, safe filenames, and machine identifiers.


2. Syntax and Signature

my $ascii_text = $adb->to_ascii($text);

3. Practical Code Example

my $adb = AmberDB->new(cfg => { language => "tr" });
my $ascii = $adb->to_ascii("İstanbul'da Çok Şık Bir Kafe");
# Returns: "Istanbul'da Cok Sik Bir Kafe"

4. See Also

AmberDB Encyclopedia

Home · A-Z Index


Getting Started & Guides


Core Concepts


Core CRUD Methods


Query, Search & Facets


Transactions & Locks


Cache, Buffer & Low-Level


Locale & Helpers


Maintenance & Tools


Configuration Flags


File Formats


Language

Clone this wiki locally