• Resolved normandrivard

    (@normandrivard)


    Hi,

    I am trying to import a list of users from a css file. Many of my users have an accent in their name, but for some reason ARMember doesn’t accept it. I tried é, UTF-8, ISO 8859-1. Never works.

    Strangely, if I manually put an accent in a name then export to css, the exported file correctly encoded it in UTF-8.

    Thanks

    –Normand

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter normandrivard

    (@normandrivard)

    Correction : if I manually put an accent in a name then export to csv…

    Plugin Support dimplemodi

    (@dimplemodi)

    Hello,

    This may happen due to utf8 not encoding from the server. So, for this open code file, wp-content/plugins/armember-membership/core/clasess/class.arm_members.php file at line number 2228 comment it below code:

    $users_array[ $count_row ][ $key ] = htmlspecialchars($fdvalsanitizearr_key , ENT_NOQUOTES );

    and uncomment 2229 line which contain below code:

    $users_array[ $count_row ][ $key ] = htmlspecialchars( mb_convert_encoding( $fdvalsanitizearr[ $key ], ‘UTF-8’ ) );

    Same process for the line number 2290 and 2291. After that, upload the CSV file again and let me know how it goes.

    Thanks

    Thread Starter normandrivard

    (@normandrivard)

    Thanks dimplemodi. I did what you suggested and it worked. I was able to import correctly with French accents.

    Now the question becomes : what will happen when the plugin gets automatically updated? Will I have to re-do the same change every time?

    –Normand

    Plugin Support dimplemodi

    (@dimplemodi)

    Hello,

    Glad to hear that the provided solution worked for you!

    Regarding your query about updating the plugin, please note that the import users process is one-time, so if you need to import users frequently, you may need to change the code file.

    Please let me know if there is anything else.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.