View Issue Details

IDProjectCategoryView StatusLast Update
0002100mantisbtbugtrackerpublic2004-07-07 18:28
Reportervboctor Assigned Toint2str  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionduplicate 
Summary0002100: Single quotes problem when copying/pasting from MS Word
Description

Go into MS Word, type "I don't think this will work". You will notice that MS Word (2000) will transform the single quote to a slightly differnt look. Copy the statement and paste it into the bug description. It can cause an error saying category not supplied or get added and get replacd with a long code &#8217.

TagsNo tags attached.

Relationships

duplicate of 0003833 closedint2str Special Chars entered in bug_report_page.php cause application error 
has duplicate 0003189 closedvboctor Using a "fancy" apostrophe in bug reports breaks everything 

Activities

reporter

reporter

2002-06-06 07:31

reporter   ~0002816

“Idont’ think this will work”.

vboctor

vboctor

2002-06-06 08:19

manager   ~0002817

See it worked! It is only when copying and pasting from MS Word. I have a feeling that it is related to Unicode somehow.

vboctor

vboctor

2003-06-26 17:05

manager   ~0004365

See 0003189 for more details.

dsi0743

dsi0743

2004-02-10 05:53

reporter   ~0004999

When reporting a new bug with this kind of string : “Idont’ think this will work” (paste from Word, or from IE 6), I got :

APPLICATION ERROR #200
A required parameter to this page was not found.

I can't submit the bug.

rufinus

rufinus

2004-02-16 05:10

reporter   ~0005042

Hi,

had the same problem in different projects, i use this function to clean the code. (function idea orginal from "j at pureftpd dot org" -> http://at.php.net/strtr )

Rufinus

function strip_evil($str){
return strtr($str,
"\x82\x83\x84\x85\x86\x87\x89\x8a\x8b\x8c\x8e\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9e\x9f",
"'f\".**^\xa6<\xbc\xb4''\"\"---~ \xa8> \xb8 "
);
}

virtuetek

virtuetek

2004-06-10 11:34

reporter   ~0005679

This bug is a major problem for me. We cannot copy/paste from MS Word into mantis without getting the "application # 200 error"

I tried using the function rufinus added to this bug...however this did not work.

Are there any other ideas on how to solve this issue? Any help is appreciated as this is a major road black for us now.

virtuetek

virtuetek

2004-06-10 12:14

reporter   ~0005680

SOLUTION:
As per vbdoctor in bug 0003831:
Try changing the character set in lang/strings_english.txt to:
$s_charset = 'windows-1252';

This is a work around for a bug in Internet Explorer. Let me know how it goes.

This worked great for me! I tried using the cleaning functions posted in other bugs related to this issue and had no luck.

int2str

int2str

2004-06-11 05:59

reporter   ~0005694

All this bugs are duplicates of 0003833

We should make an announcement on the Mantis site about this or something. Otherwise this is going to come up many times again.