• Resolved Sinkadus

    (@niwin)


    Hi, I just wonder if this is how the exported CSV list for my bookings is supposed to look:

    http://cl.ly/image/1M0K2T260c3g

    1. Any changes I do the fields (remove status, add booking date etc) doesn’t have any effect of the output
    2. It can’t handle Swedish letters Γ₯Àâ
    3. The different fields doesn’t get divided to different columns (everything is in column A)

    So my question is if I’m doing something wrong, or if this is the default behavior.

    Any help is much appreciated.

    Thanks,
    Nils

    https://ww.wp.xz.cn/plugins/events-manager/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    can I know what translation method are you using? however maybe you can try to add this in your theme functions.php

    function my_em_csv_header_output(){
    echo "\xEF\xBB\xBF"; // UTF-8
    }
    add_action('em_csv_header_output','my_em_csv_header_output');
    Thread Starter Sinkadus

    (@niwin)

    Hi

    Well, the site is in Swedish, I use Codestyling Localization to translate certain theme specific words like “Read more” – but how would that impact the CSV export of booings in Events Manager?

    I will try the code you gave – but right now I’m having trouble creating a working child theme…

    I think Angelo was wondering if the information in the csv file has been translated but it sounds as if your site is only in Swedish.

    I think this might be partly an encoding issue. Is your admin area running in Swedish?

    Is there an option to change the encoding used in the app you’re viewing the csv file in? If there is, can you test with UTF-8 encoding?

    Thread Starter Sinkadus

    (@niwin)

    I use Excel – and I don’t know anything about excel… so I don’t know how to change some setting to UTF-8 encoding..

    sorry πŸ™

    Erle

    (@erlewilliams)

    I did a quick search on setting Excel to UTF-8. Check this article: http://stackoverflow.com/questions/6002256/is-it-possible-to-force-excel-recognize-utf-8-csv-files-automatically

    The solution was to set the file orgin to “65001 : Unicode (UTF-8)” during the import process.

    I’ve also seen this happen if the delimiter is not set properly during the import process. So if the values are comma delimited be sure to choose comma delimited when importing.

    Hope that helps.

    Thread Starter Sinkadus

    (@niwin)

    Okay, that got it to work. But it would be easier if the file exported from Events Manager where of the sort to behave like this automatically, some how… is that possible?

    Thread Starter Sinkadus

    (@niwin)

    ….also, the changes I made to what columns to include (and to exclude), are still not showing. So this is still left to solve…

    @erlewilliams Thanks – that’s really helpful.

    @niwin I think the delimiting character may be the cause of your columns problem.

    When you first open the file, are you given a choice of which separator character to use? If you choose a different character does it help?

    It might also help to experiment with the text delimiter options.

    At this stage, it sounds to me more like this is an issue with Excel and Swedish, rather than Events Manager and Swedish.

    Thread Starter Sinkadus

    (@niwin)

    Yes, you’re probably right about the Swedish thing. But why does my changes to the fields not show on the file?

    Also – wouldn’t it be nice if there where some setting for what type of CSV that the plugin would export? So I could choose some version that is compatible with my spreadsheet program?

    Thread Starter Sinkadus

    (@niwin)

    BTW – this is how the file looks like in Finders Preview:

    http://cl.ly/image/2z3a0X032p1g

    So the file itself is good – its just excel that cant open it properly (MS junkware)

    Thread Starter Sinkadus

    (@niwin)

    Also – just tried opening the file in Numbers. No problem there.

    Thread Starter Sinkadus

    (@niwin)

    ….just noticed that my changes to the fields DOES show. So scratch that last question.

    Thanks for your help!

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Exported CSV not very nice…’ is closed to new replies.