Set file charset encoding standard to UTF-8

  • Posts: 98
  • Thank you received: 7
  • Hikashop Business
1 year 6 months ago #345887

-- HikaShop version -- : 4.6.2
-- Joomla version -- : v3 latest
-- PHP version -- : PHP8

Hi,

all of my import files are in UTF-8. Is there a easy way to set UTF-8 as a standard (via Views) to avoid that we need to select correct encoding charset for every import? Unfortuanetly the automatic detection is not working properly

thanks & best regards
Markus

Please Log in or Create an account to join the conversation.

  • Posts: 81515
  • Thank you received: 13069
  • MODERATOR
1 year 6 months ago #345909

Hi,

Change the line:

<?php $charsetType = hikashop_get('type.charset'); array_unshift($charsetType->values,JHTML::_('select.option','', JText::_('UNKNOWN'))); echo $charsetType->display('charsetconvert',hikaInput::get()->getString('charsetconvert','')); ?>
to:
<?php $charsetType = hikashop_get('type.charset'); array_unshift($charsetType->values,JHTML::_('select.option','', JText::_('UNKNOWN'))); echo $charsetType->display('charsetconvert',hikaInput::get()->getString('charsetconvert','UTF-8')); ?>
in the file import / file.php for your backend template via the menu Display>Views and it should do it.

Please Log in or Create an account to join the conversation.

  • Posts: 98
  • Thank you received: 7
  • Hikashop Business
1 year 5 months ago #346035

Hi

Thanks. That was also how I tried it. But not sure why.
It's also not working. I updated both templates . But it's still 'Unknown'

Any idea?

Best regards
Markus

Please Log in or Create an account to join the conversation.

  • Posts: 81515
  • Thank you received: 13069
  • MODERATOR
1 year 5 months ago #346041

Hi,

The modification works on my end, so I can only think that either you didn't add the correct text or you didn't do it for the template you're using in your backend, or a caching issue of some sort.

Please Log in or Create an account to join the conversation.

  • Posts: 98
  • Thank you received: 7
  • Hikashop Business
1 year 5 months ago #346341

Hi
thanks for your feedback. I updated the views for both templates (just to be on the safe side) but the default is still not changed. All caches are cleared.
No clue what's wrong on my side
thanks and best regards
Markus

Attachments:
Last edit: 1 year 5 months ago by Markus Schnier.

Please Log in or Create an account to join the conversation.

  • Posts: 81515
  • Thank you received: 13069
  • MODERATOR
1 year 5 months ago #346379

Hi,

I'm not sure why it wouldn't work.
Could you provide a backend and FTP access in order to check the situation ?

Please use our contact form:
www.hikashop.com/support/contact-us.html

Please Log in or Create an account to join the conversation.

  • Posts: 98
  • Thank you received: 7
  • Hikashop Business
11 months 8 hours ago #351966

Hi Nicolas,

sorry for the late response but I missed somehow your posting.

Before I create you the access please find attached the changes which I made in the ISIS template (which is my backend template).

Any idea?

best regards
Markus

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 81515
  • Thank you received: 13069
  • MODERATOR
10 months 4 weeks ago #351982

Hi,

That same modification works fine for me and I don't see a problem with your modification. So I don't know why it wouldn't work for you.
So I guess we'll need the access.

Please Log in or Create an account to join the conversation.

Time to create page: 0.074 seconds
Powered by Kunena Forum