In The Hand
GetEncoding Method
NamespacesInTheHand.Net.BluetoothLanguageBaseItemGetEncoding()()()
.NET Components for Mobility
Gets an Encoding appropriate for this language base item.
Declaration Syntax
C#Visual Basic
public Encoding GetEncoding()
Public Function GetEncoding As Encoding
Return Value

[Missing <returns> documentation for "M:InTheHand.Net.Bluetooth.LanguageBaseItem.GetEncoding"]

Remarks

We support the following set of mappings from encoding id to .NET Encoding name.
IdEncoding
3
us-ascii
4
iso-8859-1
5
iso-8859-2
6
iso-8859-3
7
iso-8859-4
8
iso-8859-5
9
iso-8859-6
10
iso-8859-7
11
iso-8859-8
12
iso-8859-9
13
iso-8859-10
106 (0x006a)
UTF-8
109
iso-8859-13
110
iso-8859-14
111
iso-8859-15
112
iso-8859-16
1013 (0x03f5)
unicodeFFFE (UTF-16BE)
1014
utf-16 (UTF-16LE)
1015
utf-16 (UTF-16, we assume UTF16-LE)
2252 to 2258 (0x08cc to 0x08d2)
windows-1252 to Windows-1258
Note that not all platforms support all these Encodings, for instance on my Windows XP SP2 box iso-8859-10/-14/-16 are not supported. On NETCF on Windows Mobile 5 only five of the ISO-8859 encodings are supported. Regardless I've seen no SDP records that use ISO-8859 encodings so this is not a problem, most records actually use UTF-8.

Exceptions
ExceptionCondition
NotSupportedException The IETF encoding id for this language base item is currently unknown. If valid, add it to the s_IetfCharsetIdToDotNetEncodingNameTable table, providing a mapping to its Windows code page name.

Assembly: InTheHand.Net.Personal (Module: InTheHand.Net.Personal) Version: 3.0.0.0