Ask Your Question
0

facebook/twitter share fails with unicode url

asked 2012-07-03 21:53:03 -0500

str gravatar image str
81 3 2 8

If question/answer title is unicode, which sets the url unicode - then, when I try to share with facebook/twitter it fails.

For example, the api request to twitter changes to, http://twitter.com/share?url=undefined&ref=twitbtn&text=%u0975 ...... and twitter sends 'This webpage is not found'

Is this an issue with askbot?

delete close flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-07-06 03:23:21 -0500

alexandros.z gravatar image alexandros.z
610 12 10 30

updated 2012-07-06 03:24:43 -0500

Hello.

I had a similar problem some time ago. Please have a look here.

Probably, is not the best solution, but worked for me. Have a look on the second part of the answer where I am writing something about escaping characters.

I removed escaping, because when I tried to post greek questions (non latin characters) the url created was not valid (contained a lot of % because of escaping) and twitter sharing didnt work. Now it works.

Hope it helps

link publish delete flag offensive edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow

subscribe to rss feed

Stats

Asked: 2012-07-03 21:53:03 -0500

Seen: 134 times

Last updated: Jul 06 '12