You are here: PSPad forum > Bug report / Hlášení chyb > Re: Unwanted and sudden converting to strange characters

Re: Unwanted and sudden converting to strange characters

Goto Page: 1 2 3 4 5 6 7 Next

#1 Unwanted and sudden converting to strange characters

Posted by: Extranjero | Date: 2020-06-04 10:04 | IP: IP Logged

From time to time it happens that in a random part of a file, the clear-code is suddenly converted in 'strange' special characters.
As its out of view, u realize it after upload ist app/browser says that's there no way to process it.
Attaching the link to a screen-shot in hope that it works: image

Options: Reply | Quote | Up ^


#2 Re: Unwanted and sudden converting to strange characters

Posted by: pspad | Date: 2020-06-04 10:51 | IP: IP Logged

Syntax PHP?
Code page?
Do you use Code explorer, FTP ?

Options: Reply | Quote | Up ^


#3 Re: Unwanted and sudden converting to strange characters

Posted by: Extranjero | Date: 2020-06-04 11:16 | IP: IP Logged

Doing all in ANSI Western European (1552), no Code explorer, no FTP.
Syntax of the shown example is Javascript (which I use less because of 'writing/creating' Javascript-files by vb.net/vbscript; but it happens every 3 to 4 days, even with plain .txt files.
I think this could be because of reaching a memory-leak or something like this ... and every time it happens, there are a some/lots of &Yuml (Ÿ) signs in the changed text.
Sometimes it affects only 1 line, other times 3 or 4 lines but converting them in a single line.
As for it's easy to identify and correct (if there exists a back-up of the file), it's not 'mortal' - valid only for mentioning smiling smiley.

BTW: PsPad is a great program!
Have a nice day!
Greetings from Mar del Plata (Argentina).

Options: Reply | Quote | Up ^


#4 Re: Unwanted and sudden converting to strange characters

Posted by: khagaroth | Date: 2020-06-13 07:00 | IP: IP Logged

Tough luck with this one. It's a bug that has been reported repeatedly by different users for at least 2 years and it's still not fixed. Though to be fair, the fact that it's quite random and isn't tied to a particular file type/highlighter and happens on even plain TXT makes it hard to reproduce. The only clue is that the gibberish always starts with ÿ (FF) which points to UTF-16 LE (internal text representation?).

Options: Reply | Quote | Up ^


#5 Re: Unwanted and sudden converting to strange characters

Posted by: khagaroth | Date: 2020-06-13 20:33 | IP: IP Logged

Ok, scratch two years, just found one (not the oldest for sure) thread on this bug, and it's from 2015, time really flies.

Options: Reply | Quote | Up ^


#6 Re: Unwanted and sudden converting to strange characters

Posted by: Gorlash | Date: 2020-06-23 01:20 | IP: IP Logged

Yes, I've been reporting it repeatedly, for many years, over many versions...

I had to quit using PsPad at my last job, because it would inject this corruption into files, at sites that I wasn't even working on - and then they would get committed to Git repository, and when I tried to generate a pull request, it would fail because of garbage characters in the file!!

Another difficulty of duplicating this issue, is that it is *much* more common when I have many files open simultaneously in PsPad... but when I'm on the job, it is *quite* common for me to have 10 or 15 files open simultaneously...

It is very sad...

Options: Reply | Quote | Up ^


#7 Re: Unwanted and sudden converting to strange characters

Posted by: pspad | Date: 2020-06-23 04:12 | IP: IP Logged

I agree, there were lot of reports in the past. But in 5.0.4 I got only one report as I remember.

Options: Reply | Quote | Up ^


#8 Re: Unwanted and sudden converting to strange characters

Posted by: syntech | Date: 2020-07-16 12:47 | IP: IP Logged

I'm having the same issue randomly "since ever" it feels, but since I'm using 5.0.4 (511) it happens almost every day, sometimes several times a day. It appears it always has either to do with } (closing bracket) and/or C/C++ commands like else, #elseif, #endif... To me it looks like a memory bug, resulting in memory garbage pasted into one of the open files.

I have made a diff between two versions and the only difference is:

#endif

becomes

#e??if···N??···%Time%···n?s??l·$······o??···%Email%
·O?B··?········R?s???·N··?····R?s???·X··?····S?
·CESKY····S?··Include··T?T··?T???p??···T?s??]
%··i····U?··Define···U?··#endif···W?s??n·#
······W?s??Z·%·······z?U??·········z··?

It's a C++ headerfile, 2064 rows, UNIX format, ANSI (1252) Codepage, many files open in Tabs.

Options: Reply | Quote | Up ^


#9 Re: Unwanted and sudden converting to strange characters

Posted by: syntech | Date: 2020-07-16 13:00 | IP: IP Logged

Additional note: PSPad 5.0.4 (511) also crashes way more often (every couple days) than in older versions, which also makes me think the now much more often appearing 'character issues' is coming from a memory leak...

Edited 1 time(s). Last edit at 2020-07-16 13:01 by syntech.

Options: Reply | Quote | Up ^


#10 Re: Unwanted and sudden converting to strange characters

Posted by: syntech | Date: 2020-07-22 12:19 | IP: IP Logged

@jan:

I don't know which language PSPad is written in, but if it's possible please try to use address sanitizer (ASAN) to check for memory issues. This bug is annoying me now several times a day and it's a PITA.

If I can help you just tell me what you need.

Options: Reply | Quote | Up ^


Goto Page: 1 2 3 4 5 6 7 Next





Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR