GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  IDN_SETLOCALENCODING (3)

NAME

idn_setlocalencoding - set the local encoding

CONTENTS

Synopsis
Description

SYNOPSIS

#include <idn/api.h>

idn_result_t idn_setlocalencoding(const char *name);

DESCRIPTION

The function sets "the local encoding" to name.

The local encoding value affects results of IDN_UNICODECONV and IDN_LOCALCONV actions in encoding and decoding conversions.

If name argument is NULL, the local encoding is determined by locale information. For example, the locale category LC_CTYPE has been set to "ja_JP.UTF-8", the idnkit library supposes the local encoding is "UTF-8". If an application changes its locale setting, also the local encoding value is changed automatically.

However, once a non-NULL local encoding name has been set by idn_setlocalencoding(), or set by IDN_LOCAL_CODESET environment variable, the local encoding will not be changed by locale information any longer.

Upon success, idn_setlocalencoding() returns idn_success. Otherwise, it returns an error code. See idn_result_tostring(3) for the complete list of error codes.

SEE ALSO

libidnkit(3), idn_checkname(3), idn_comparenames(3), idn_decodename(3), idn_encodename(3), idn_nameinit(3), idn_result_tostring(3), idnalias.conf(5)
Search for    or go to Top of page |  Section 3 |  Main Index


--> IDN_SETLOCALENCODING (3) Sep 21, 2012

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.