Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2017-05-24 15:03:20

7seas
Member
Registered: 2017-04-20
Posts: 18

UTF issue

Hello,

I enable translate module (great again) !

I have this issue, it seems only for apostrophe:
You can see the result:
I would like know your delivery delay? J'aimerais connaître votre délai de livraison?
17:00:34
J'aimerai savoir J'aimerai savoir


On other CMS I don't have this issue,so I don't where this issue could come.

Thank for your help
smile

Offline

#2 2017-05-24 15:15:06

7seas
Member
Registered: 2017-04-20
Posts: 18

Re: UTF issue

Please note, this is only the translated part that has the issue

Offline

#3 2017-05-24 15:45:01

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: UTF issue

Hi 7seas,
I do not know how to help, seems an update made by you has broken some file who are uploaded with wrong codec.

You can try to backup your install and upgrade to the last version by following:
https://livehelperchat.com/article/view/63

Hope it helps.


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

#4 2017-05-24 21:38:12

7seas
Member
Registered: 2017-04-20
Posts: 18

Re: UTF issue

Hey PeopleInside smile,

Thank you for your reply. I made update as you said, and tryed with fresh install but still have the issue.
I tough it was an UTF issue but it seems coming from Googel Translate API :
https://groups.google.com/forum/#!topic … ddZ5boMtrA

Offline

#5 2017-05-24 21:40:52

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: UTF issue

well, thank you for your post. Maybe the issue can be Google Translate used in your website.
Sometimes is possible that Google Translate script can give to you some issue so maybe the right place for help is Google Translate forum.
smile


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

#6 2017-05-26 10:05:59

7seas
Member
Registered: 2017-04-20
Posts: 18

Re: UTF issue

Talking with some people, they say it comes from code.
I open ticket on github?

Offline

#7 2017-05-26 10:26:51

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: UTF issue

You can but I do not think there are code issue.
The issue is present in some specific translation?
Are you able to reproduce the issue on livehelperchat.com demo?


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

#8 2017-05-26 11:40:59

7seas
Member
Registered: 2017-04-20
Posts: 18

Re: UTF issue

Yes I just try with the demo account and there is the issue.
You can try with the french expression: ' c'est gratuit '

Offline

#9 2017-05-26 11:45:40

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: UTF issue

Hi,
can you please indicate the steps for reproduce the issue?

I AM unable to reproduce in the demo.


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

#10 2017-05-26 11:53:08

7seas
Member
Registered: 2017-04-20
Posts: 18

Re: UTF issue

I tryed in the translate settings (issue is same in front end).
It seems you did not enable translation mode in your previous session

Offline

#11 2017-05-26 11:55:07

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: UTF issue

Understood, is an issue present when you use translation in Live helper chat.
You can open a GitHub topic with detailed step on how to reproduce to the chat owner.

Thank you!

Note: if the issue depend on Google Translate no much can be done.


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

#12 2017-05-26 14:53:12

7seas
Member
Registered: 2017-04-20
Posts: 18

Re: UTF issue

Offline

#13 2017-05-26 15:33:12

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: UTF issue

Thanks for the feedback.


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

#14 2017-05-27 20:03:06

7seas
Member
Registered: 2017-04-20
Posts: 18

Re: UTF issue

Update (in GitHub too)


Hello,

I was able to fix the issue. You could replace this:
$url = "https://www.googleapis.com/language/translate/v2?key={$apiKey}&q=".urlencode($word)."&source={$from}&target={$to}";
by:
$url = "https://www.googleapis.com/language/translate/v2?key={$apiKey}&q=".urlencode($word)."&source={$from}&target={$to}&format=".text."";

This line is in:
lib/core/lhtranslate/lhgoogletranslate.php file.

Thank you confirm that's good .

Last edited by 7seas (2017-05-27 20:04:25)

Offline

#15 2017-05-28 07:38:57

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: UTF issue

Thank you for the fix,
will be reviewed by the chat owner on GitHub; consider that the chat owner is busy so this can take some time!
Wish you a good time.
smile


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

Board footer