webengine/wmlengine/src/utils/src/TEncodingMapping.cpp
changeset 0 dd21522fd290
child 16 a359256acfc6
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "TEncodingMapping.h"
       
    20 #include "nwx_http_defs.h"
       
    21 #include "nwx_defs.h"
       
    22 #include <charconv.h>
       
    23 
       
    24 const SupportedCharset supportedCharset[] =
       
    25     {
       
    26     {KCharacterSetIdentifierIso88591, HTTP_iso_8859_1, EISO8859_1, (NW_Uint8*)NW_Iso88591_CharsetStr, NW_TRUE},
       
    27     {KCharacterSetIdentifierIso88591, HTTP_iso_8859_1, EISO8859_1, (NW_Uint8*)NW_Windows1252_CharsetStr, NW_TRUE},
       
    28     {KCharacterSetIdentifierUtf8,     HTTP_utf_8,      EUTF8,      (NW_Uint8*)NW_Utf8_CharsetStr, NW_TRUE},
       
    29     {KCharacterSetIdentifierGb2312,   HTTP_gb2312,     EGb2312,    (NW_Uint8*)NW_Gb2312_CharsetStr, NW_TRUE},
       
    30     {KCharacterSetIdentifierBig5,     HTTP_big5,       EBig5,      (NW_Uint8*)NW_Big5_CharsetStr, NW_TRUE},
       
    31     {KCharacterSetIdentifierIso88592, HTTP_iso_8859_2, EISO8859_2, (NW_Uint8*)NW_Iso88592_CharsetStr, NW_TRUE},
       
    32     {KCharacterSetIdentifierIso88594, HTTP_iso_8859_4, EISO8859_4, (NW_Uint8*)NW_Iso88594_CharsetStr, NW_TRUE},
       
    33     {KCharacterSetIdentifierIso88595, HTTP_iso_8859_5, EISO8859_5, (NW_Uint8*)NW_Iso88595_CharsetStr, NW_TRUE},
       
    34     {KCharacterSetIdentifierIso88596, HTTP_iso_8859_6, EISO8859_6, (NW_Uint8*)NW_Iso88596_CharsetStr, NW_TRUE},
       
    35     {KCharacterSetIdentifierIso88597, HTTP_iso_8859_7, EISO8859_7, (NW_Uint8*)NW_Iso88597_CharsetStr, NW_TRUE},
       
    36     {KCharacterSetIdentifierIso88598, HTTP_iso_8859_8, EISO8859_8, (NW_Uint8*)NW_Iso88598_CharsetStr, NW_TRUE},
       
    37     {KCharacterSetIdentifierIso88599, HTTP_iso_8859_9, EISO8859_9, (NW_Uint8*)NW_Iso88599_CharsetStr, NW_TRUE},
       
    38     {KCharacterSetIdentifierIso88599, HTTP_iso_8859_9, EISO8859_9, (NW_Uint8*)NW_Iso885915_CharsetStr, NW_TRUE},
       
    39     {0x100059d6, HTTP_windows_1250, EWindows1250, (NW_Uint8*)NW_Windows1250_CharsetStr, NW_TRUE}, // no header file is provided with the converter windows-1250
       
    40     {0x100059D7, HTTP_windows_1251, EWindows1251, (NW_Uint8*)NW_Windows1251_CharsetStr, NW_TRUE}, // no header file is provided with the converter windows-1251
       
    41     {0x100059D8, HTTP_windows_1253, EWindows1253, (NW_Uint8*)NW_Windows1253_CharsetStr, NW_TRUE}, // no header file is provided with the converter windows-1253
       
    42     {0x100059D9, HTTP_windows_1254, EWindows1254, (NW_Uint8*)NW_Windows1254_CharsetStr, NW_TRUE}, // no header file is provided with the converter windows-1254
       
    43     {0x101F8547, HTTP_windows_1255, EWindows1255, (NW_Uint8*)NW_Windows1255_CharsetStr, NW_TRUE}, // no header file is provided with the converter windows-1255
       
    44     {0x101F8547, HTTP_windows_1255, EWindows1255, (NW_Uint8*)NW_Iso88598i_CharsetStr, NW_TRUE}, // no header file is provided with the converter windows-1255
       
    45     {0x101F8548, HTTP_windows_1256, EWindows1256, (NW_Uint8*)NW_Windows1256_CharsetStr, NW_TRUE}, // no header file is provided with the converter windows-1256
       
    46     {0x100059DA, HTTP_windows_1257, EWindows1257, (NW_Uint8*)NW_Windows1257_CharsetStr, NW_TRUE}, // no header file is provided with the converter windows-1257
       
    47     {0x101F8549, HTTP_tis_620,      ETis620,      (NW_Uint8*)NW_Tis_620_CharsetStr, NW_TRUE}, // no header file is provided with the converter tis-620
       
    48     {KCharacterSetIdentifierShiftJis,    HTTP_shift_JIS,      EShiftJis,      (NW_Uint8*)NW_ShiftJis_CharsetStr, NW_TRUE},
       
    49     {KCharacterSetIdentifierShiftJis,    HTTP_shift_JIS,      EShiftJis,      (NW_Uint8*)NW_ShiftJis_CharsetStr2, NW_TRUE},
       
    50     {KCharacterSetIdentifierShiftJis,    HTTP_shift_JIS,      EShiftJis,      (NW_Uint8*)NW_X_SJis_CharsetStr, NW_TRUE},
       
    51     {KCharacterSetIdentifierJis,         HTTP_jis_x0201_1997, EJisX0201_1997, (NW_Uint8*)NW_JisX0201_1997_CharsetStr, NW_TRUE},
       
    52     {KCharacterSetIdentifierJis,         HTTP_jis_x0208_1997, EJisX0208_1997, (NW_Uint8*)NW_JisX0208_1997_CharsetStr, NW_TRUE},
       
    53     {KCharacterSetIdentifierEucJpPacked, HTTP_euc_jp,         EEucJp,         (NW_Uint8*)NW_EucJp_CharsetStr, NW_TRUE},
       
    54     {KCharacterSetIdentifierEucJpPacked, HTTP_euc_jp,         EEucJp,         (NW_Uint8*)NW_X_EucJp_CharsetStr, NW_TRUE},
       
    55     {KCharacterSetIdentifierIso2022Jp,   HTTP_iso_2022_jp,    EIso2022Jp,     (NW_Uint8*)NW_Iso2022Jp_CharsetStr, NW_TRUE},
       
    56     {0x101F854A, HTTP_windows_874, EWindows874, (NW_Uint8*)NW_Windows874_CharsetStr, NW_TRUE}, // no header file is provided with the converter windows-874
       
    57     {0x101F8778, HTTP_Koi8_r,      EKoi8_r,     (NW_Uint8*)NW_Koi8r_CharsetStr, NW_TRUE}, // no header file is provided with the converter Russian
       
    58     {0x101F8761, HTTP_Koi8_u,      EKoi8_u,     (NW_Uint8*)NW_Koi8u_CharsetStr, NW_TRUE}, // no header file is provided with the converter Ukrainian
       
    59     {KCharacterSetIdentifierUcs2, HTTP_iso_10646_ucs_2, EISO10646_UCS_2, (NW_Uint8*)NW_Iso10646Ucs2_CharsetStr, NW_FALSE},
       
    60     {KCharacterSetIdentifierUcs2, HTTP_iso_10646_ucs_2, EISO10646_UCS_2, (NW_Uint8*)NW_Unicode_CharsetStr, NW_FALSE},
       
    61     {0, 0, EAutomatic, (NW_Uint8*)NULL, NW_TRUE},
       
    62     {0, 0, EDummyLast, (NW_Uint8*)NULL, NW_TRUE}
       
    63 };