Menu

#1111 (ok 3.2.0) Config directive for default charset on import

fixed
1
2013-06-11
2008-09-08
No

To continue with what has been said on this page: https://sourceforge.net/tracker/index.php?func=detail&aid=2080963&group_id=23067&atid=377408

In harmony with $cfg['Export']['charset'], that set default charset on the Export page, let's make another one - $cfg['Import']['charset'], that will set default charset on the Import page.

libraries/display.import.lib.php line 91:
if ($temp_charset == $charset) {

Replace with:
if ((empty($cfg['Import']['charset']) && $temp_charset == $charset)
|| $temp_charset == $cfg['Import']['charset']) {

libraries/config.default.php, "Import defaults" block.
Add empty directive:
$cfg['Import']['charset'] = '';

Documentation.txt, line 1044:
Setting this to TRUE also activates a pull-down menu in the Export page, to choose the character set when exporting a file. The default value in this menu comes from $cfg['Export']['charset'].

As variant:
Setting this to TRUE also activates a pull-down menu in the Export and Import page, to choose the character set when exporting or importing a file. The default value in this menu comes from $cfg['Export']['charset'] and $cfg['Import']['charset'], respectively.

Discussion

  • Michal Čihař

    Michal Čihař - 2008-11-30
    • assigned_to: nobody --> nijel
     
  • Michal Čihař

    Michal Čihař - 2008-11-30

    Implemented in svn, thanks for suggestion.

     
  • Michal Čihař

    Michal Čihař - 2008-11-30
    • priority: 5 --> 1
    • summary: Config directive for pre selected charset on import page --> (ok 3.2.0) Config directive for default charset on import
    • status: open --> open-fixed
     
  • Michal Čihař

    Michal Čihař - 2009-03-03
    • labels: --> Data insertion/extraction/manipulation
     
  • Marc Delisle

    Marc Delisle - 2009-06-15
    • status: open-fixed --> closed-fixed
     
  • Michal Čihař

    Michal Čihař - 2013-06-11
    • Status: closed-fixed --> fixed