[Skip to main content](#vessel-content)

#   Hikashop Google Products Plugin XML with problems

##

- **[yanliom](/forum/user/45218-yanliom "View yanliom's Profile")**
- [![yanliom's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/45218-yanliom "View yanliom's Profile") Topic Author
- [ Offline](/forum/user/45218-yanliom)

Less More

- Posts: 66
- Thank you received: 1
-
-

5 years 2 weeks ago -  5 years 2 weeks ago [\#336979](#336979) by [yanliom](/forum/user/45218-yanliom "View yanliom's Profile")  *[Hikashop Google Products Plugin XML with problems](/forum/30-integrations/903459-hikashop-google-products-plugin-xml-with-problems#336979 "-- url of the page with the problem -- :   www.havellasmotoparts.gr/products/products&#95;list.xml  -- HikaShop version -- : 4.4.4 -- Joomla version -- : 3.10.3  Hello,  in my Greek eshop the XML produced by the Hikashop Google Products Plugin XML shows problems. As a result Facebook catalogue cannot be filled using the XML feed. I have used again in the past the XML feed for Hikashop+FB (in English) and it worked fine.  Is it possible that non-latin characters are the cause of the problem?  I checked the product descriptions that show in the error (using code mirror editor) but I found no weird characters.  I attach you the following files: a) The XML file b) The FF and Chrome screenshots  Thank you, Yannis")* was created by *[yanliom](/forum/user/45218-yanliom "View yanliom's Profile")*

-- url of the page with the problem -- : [ www.havellasmotoparts.gr/products/products\_list.xml](http://www.havellasmotoparts.gr/products/products_list.xml)
-- HikaShop version -- : 4.4.4
-- Joomla version -- : 3.10.3

Hello,

in my Greek eshop the XML produced by the Hikashop Google Products Plugin XML shows problems.
As a result Facebook catalogue cannot be filled using the XML feed.
I have used again in the past the XML feed for Hikashop+FB (in English) and it worked fine.

Is it possible that non-latin characters are the cause of the problem?

I checked the product descriptions that show in the error (using code mirror editor) but I found no weird characters.

I attach you the following files:
a) The XML file  *This attachment is hidden for guests.
Please log in or register to see it.*

b) The FF and Chrome screenshots

Thank you,
Yannis

- [ ![firefox-screenshot.jpg](/forum/attachment/53853) ](/forum/attachment/53853 "...screenshot.jpg") [ ](/forum/attachment/53853?download=1 "...screenshot.jpg")
- [ ![chrome-screenshot.jpg](/forum/attachment/53854) ](/forum/attachment/53854 "...screenshot.jpg") [ ](/forum/attachment/53854?download=1 "...screenshot.jpg")

Last edit: 5 years 2 weeks ago by [yanliom](/forum/user/45218-yanliom "View yanliom's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy85MDM0NTktaGlrYXNob3AtZ29vZ2xlLXByb2R1Y3RzLXBsdWdpbi14bWwtd2l0aC1wcm9ibGVtcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[yanliom](/forum/user/45218-yanliom "View yanliom's Profile")**
- [![yanliom's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/45218-yanliom "View yanliom's Profile") Topic Author
- [ Offline](/forum/user/45218-yanliom)

Less More

- Posts: 66
- Thank you received: 1
-
-

5 years 2 weeks ago [\#336980](#336980) by [yanliom](/forum/user/45218-yanliom "View yanliom's Profile")  Replied by *[yanliom](/forum/user/45218-yanliom "View yanliom's Profile")* on topic *[Hikashop Google Products Plugin XML with problems](/forum/30-integrations/903459-hikashop-google-products-plugin-xml-with-problems#336980 "-- url of the page with the problem -- :   www.havellasmotoparts.gr/products/products&#95;list.xml  -- HikaShop version -- : 4.4.4 -- Joomla version -- : 3.10.3  Hello,  in my Greek eshop the XML produced by the Hikashop Google Products Plugin XML shows problems. As a result Facebook catalogue cannot be filled using the XML feed. I have used again in the past the XML feed for Hikashop+FB (in English) and it worked fine.  Is it possible that non-latin characters are the cause of the problem?  I checked the product descriptions that show in the error (using code mirror editor) but I found no weird characters.  I attach you the following files: a) The XML file b) The FF and Chrome screenshots  Thank you, Yannis")*

After some research I found that a wrong character is inserted when a long product description is truncated (see screenshot).
I retyped manually a product description and the character is inserted again!

Please see attached screenshot.  [ ![Screenshot2021-11-11154515.jpg](/forum/attachment/53856) ](/forum/attachment/53856 "...1-11154515.jpg")

Yannis

- [ ![Screenshot2021-11-11154515.jpg](/forum/attachment/53856) ](/forum/attachment/53856 "...1-11154515.jpg") [ ](/forum/attachment/53856?download=1 "...1-11154515.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy85MDM0NTktaGlrYXNob3AtZ29vZ2xlLXByb2R1Y3RzLXBsdWdpbi14bWwtd2l0aC1wcm9ibGVtcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[yanliom](/forum/user/45218-yanliom "View yanliom's Profile")**
- [![yanliom's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/45218-yanliom "View yanliom's Profile") Topic Author
- [ Offline](/forum/user/45218-yanliom)

Less More

- Posts: 66
- Thank you received: 1
-
-

5 years 2 weeks ago [\#336983](#336983) by [yanliom](/forum/user/45218-yanliom "View yanliom's Profile")  Replied by *[yanliom](/forum/user/45218-yanliom "View yanliom's Profile")* on topic *[Hikashop Google Products Plugin XML with problems](/forum/30-integrations/903459-hikashop-google-products-plugin-xml-with-problems#336983 "-- url of the page with the problem -- :   www.havellasmotoparts.gr/products/products&#95;list.xml  -- HikaShop version -- : 4.4.4 -- Joomla version -- : 3.10.3  Hello,  in my Greek eshop the XML produced by the Hikashop Google Products Plugin XML shows problems. As a result Facebook catalogue cannot be filled using the XML feed. I have used again in the past the XML feed for Hikashop+FB (in English) and it worked fine.  Is it possible that non-latin characters are the cause of the problem?  I checked the product descriptions that show in the error (using code mirror editor) but I found no weird characters.  I attach you the following files: a) The XML file b) The FF and Chrome screenshots  Thank you, Yannis")*

Ok, it seems I found the bug in the code.

In the code you are using the substr php function which counts bytes and may cut characters in half....
I replaced it with mb_substr and everything works ok now

Please see: [ stackoverflow.com/questions/2124338/why-...-when-cutting-a-text](https://stackoverflow.com/questions/2124338/why-my-php-substr-shows-obscure-characters-when-cutting-a-text)

I'm waiting for an official bug-fix!

Yannis

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy85MDM0NTktaGlrYXNob3AtZ29vZ2xlLXByb2R1Y3RzLXBsdWdpbi14bWwtd2l0aC1wcm9ibGVtcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

5 years 2 weeks ago [\#336987](#336987) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hikashop Google Products Plugin XML with problems](/forum/30-integrations/903459-hikashop-google-products-plugin-xml-with-problems#336987 "-- url of the page with the problem -- :   www.havellasmotoparts.gr/products/products&#95;list.xml  -- HikaShop version -- : 4.4.4 -- Joomla version -- : 3.10.3  Hello,  in my Greek eshop the XML produced by the Hikashop Google Products Plugin XML shows problems. As a result Facebook catalogue cannot be filled using the XML feed. I have used again in the past the XML feed for Hikashop+FB (in English) and it worked fine.  Is it possible that non-latin characters are the cause of the problem?  I checked the product descriptions that show in the error (using code mirror editor) but I found no weird characters.  I attach you the following files: a) The XML file b) The FF and Chrome screenshots  Thank you, Yannis")*

Hi,

Thank you for your feedback.
I've added a patch on our end to avoid that for multibyte characters.
Download again the install package of HikaShop on our website and install it on yours and it will add the modifications to avoid that problem.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy85MDM0NTktaGlrYXNob3AtZ29vZ2xlLXByb2R1Y3RzLXBsdWdpbi14bWwtd2l0aC1wcm9ibGVtcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.073 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
