Skip to main content

Set file charset encoding standard to UTF-8

More
3 years 11 months ago #345887 by Markus Schnier
-- 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.

More
3 years 11 months ago #345909 by nicolas
Hi,

Change the line:
Code:
<?php $charsetType = hikashop_get('type.charset'); array_unshift($charsetType->values,JHTML::_('select.option','', JText::_('UNKNOWN'))); echo $charsetType->display('charsetconvert',hikaInput::get()->getString('charsetconvert','')); ?>
to:
Code:
<?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.

More
3 years 10 months ago #346035 by Markus Schnier
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.

More
3 years 10 months ago #346041 by nicolas
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.

More
3 years 10 months ago - 3 years 10 months ago #346341 by Markus Schnier
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
Last edit: 3 years 10 months ago by Markus Schnier.

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

More
3 years 10 months ago #346379 by nicolas
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.

More
3 years 4 months ago #351966 by Markus Schnier
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

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

More
3 years 4 months ago #351982 by nicolas
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.187 seconds
Powered by Kunena Forum