Vladimir’s WordPress Forum


 
Current User: Guest
Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

Strange bug – converting "-" to "–"

Add a New Topic Reply to Post
UserPost

13:10
28 October, 2010


MixMan

Guest

Yes, it's just like this, when I activate the Smart Youtube plugin it converts all the dashes "-" in the text of my posts to double dashes "–".

I deactivated all other plugins, changed the theme to a modern one (Twenty Ten Weaver), and it looks that exactly Smart Youtube is causing the problem. I also played around with the options in the plugin settings, but the problem persists.

This is really strange to me. But I cannot drop off using the plugin, it's essential for my blog. Here's the URL:

http://www.kolkomuzika.com

Any suggestions?

11:47
24 November, 2010


MixMan

Guest

My blog is in Bulgarian which means it uses the cyrilic alphabet and UTF-8 encoding. If any of that helps…

22:15
3 May, 2011


MixMan

Guest

Nobody with the same problem? Anyone using the Cyrillic alphabet on their blog?

0:57
14 May, 2011


Vladimir

Admin

posts 707

Hi, can you give a concrete example?

1:47
19 May, 2011


whipd

Guest

I am also having the same problem.

An example can be found here:
https://skitch.com/whipd/fyf7y/dreamweaver

3:08
19 May, 2011


whipd

Guest

Check out another thread on this subject:
http://wordpress.stackexchange…..ouble-dash

6:32
19 May, 2011


whipd

Guest

In smartyoutube.class.php, line 397 I changed
$replacements = array("x", "–");
to:
$replacements = array("x", "-");

It would be great if this bug was fixed up on the next release so my hack doesn't get overwritten on the next plugin update.

Cheers.

17:35
20 May, 2011


MixMan

Guest

Thanks so much! It is fixed now with the latest version of Smart Youtube 3.8.7!!!

1:34
22 May, 2011


varloo

Guest

I think the solution is actually
$replacements = array("x", "–");

6:14
1 August, 2011


Joe

Guest

I'm having a problem now where Smart YouTube is converting double dashes to single dashes, thus breaking a YouTube URL that has double dashes in it (wish YouTube wouldn't do stupid stuff like that).

22:36
8 August, 2011


Marko

Guest

@Joe: Please provide me the link to debug it.

12:40
31 August, 2011


Hogeveen

Guest

Ok having the same problem

Youtube link:

Output= httpvh://www.youtube.com/watch?v=-8-2QMJyUI#!

So one dash is taken away bij the plugin

22:18
1 September, 2011


Vladimir

Admin

posts 707

Did you try pasting it in HTML mode?

16:32
14 October, 2011


Henk

Guest

No I didn't

You can try it for joueself, you'll see the problem

Gr. Henk

19:07
14 October, 2011


MixMan

Guest

What happened, Vladimir, did you revert back to the previous code, because now Smart Youtube started again to convert single dashes to double dashes :(

9:47
4 December, 2011


MixMan

Guest

Hi again. Reporting on the new 4.0 PRO version. It's great, thanks for the new functionality, especially the new parsing options!

But the double dash bug is still here. What happened to user "whipd" hack from above? I saw it implemented in some previous versions, but now it's not again.

Reply to Post

Reply to Topic:
Strange bug – converting "-" to "–"

Guest Name (Required):

Guest Email (Required):

HTML Editor
Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
12 + 6