Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Title tag encoding error #288

Closed
rjsorto opened this issue Feb 14, 2014 · 6 comments
Closed

Title tag encoding error #288

rjsorto opened this issue Feb 14, 2014 · 6 comments

Comments

@rjsorto
Copy link

rjsorto commented Feb 14, 2014

I just wasted almost all day trying to figure out why was i getting this error

"Not Acceptable

An appropriate representation of the requested resource /livesupport/index.php/chat/chatwidget/(leaveamessage)/true/(department)/4 could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."

It was a letter ó in the title tag from the word Televisión, as soon as i erased that letter everything worked.

The site i'm implementing lhc is in spanish, none of the accents in the rest of the page are causing this behavior, just in the title tag.

The site is encoded in utf-8.
I'm using lhc 1.86

Other than that the script looks pretty nice, i'll keep testing...

not_acceptable

@remdex
Copy link
Contributor

remdex commented Feb 14, 2014

Sorry but everything works here.

  1. This error is produced because of server configuration LHC has nothing to do with it.
  2. You should contact your server administrator and paste him URL which produces this.

@remdex remdex closed this as completed Feb 14, 2014
@rjsorto
Copy link
Author

rjsorto commented Feb 14, 2014

The website does not display any encoding problem, it shows the content just fine.

The error is only with lhc live help widget that shows inside the page, the popup window works fine, I tested it on 2 different servers wamp (development) and lamp (production) same error, do you think both may have the same configuration issue?

Thanks for the help.

@remdex
Copy link
Contributor

remdex commented Feb 14, 2014

Exactly.
It's server produced error not LHC itself. And I really do not know what's couses this issue on your environment.

@rjsorto
Copy link
Author

rjsorto commented Feb 14, 2014

Hi again remdex.

The solution was so easy, i just replaced:
escape(document.title) (which is deprecated anyway)
in file design/defaulttheme/tpl/lhchat/getstatus.tpl.php
lines 296, 298, 376 and 389.

with:
encodeURI(document.title)

I notice you have more escape() functions in the scripts but i'm soooo lazy, as long as it works i will keep the rest as it is.

Hope this helps someone else.

Cheers!!!

@remdex
Copy link
Contributor

remdex commented Feb 14, 2014

Thanks for letting me know. I will change by myself in next release :)

@remdex remdex reopened this Feb 14, 2014
remdex added a commit that referenced this issue Feb 14, 2014
@remdex
Copy link
Contributor

remdex commented Feb 15, 2014

@remdex remdex closed this as completed Feb 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants