Bug #328 - Pasting can't handle Scandinavian/German characters
Product:PageStream 5.0.4.31 (All Platforms)Reported By:Janne Peräaho
Severity:MajorAssigned To:Deron Kazmaier
Priority:Average sign in to watch (2 are watching)
Status:Works for MeReported:2011-12-10 11:14:36
Category:Text EditingUpdated:2011-12-10 11:14:36
Summary:Pasting can't handle Scandinavian/German characters
Keywords:
Attached Files:Characters.pngLen:36,854 bytesMD5:cc466db1dcb4e8f51d1e47519f16ac2aCharacters to be copied
 Pasted_characters.pngLen:97,214 bytesMD5:2b071137f2b61d69da90935355cae656The same characters after pasting them to PageStream
 Sign In to add a file.

When you paste a text containing Scandinavian/German characters, the result is gibberish.

It looks to me that the Scandinavian/German characters are stored as 16-bit values in the Mac's clipboard but PageStream assumes all characters to be 8-bit, because when you paste a Scandinavian/German character you'll get two garbage characters.

T.J. Zweers wrote...2011-12-11 03:16:39

Try this again.
But now you choose a text-editor, instead of PGS.
Do the characters come out right?
1. If they don't: you have the problem maker, and it is not PGS.
2. If they do: paste those (copied from the text-editor!) into PGS. What happens now?

I haven't that problem, you probably guessed.
BTW those characters are called diacritical characters.

Janne Peräaho wrote...2011-12-11 10:06:48

Yes, pasting to text editor works right.
Copying the diacritical characters from the text editor to PGS results the same gibberish as before.
The PGS's Preferences/Type/CharSet setting is "ISO 8859-01 (Western Europe)" which sounds right to me. My iMac's language is set to Finnish (Suomi).

Janne Peräaho wrote...2011-12-11 10:23:09

This bug's product info should be "PageStream 5.0.5.8 (MacOSX)" and not "PageStream 5.0.4.31 (All Platforms)".

Deron Kazmaier wrote...2011-12-29 22:54:38

As expected, this worked fine for me. Usually this is going to be a problem with a specific program and not a general one. Mac applications can put the text in all kinds of formats, so I need to know what format was put on the clipboard and by what program.

The text is most likely in UTF8 format. If it was 16bit, then you would see odd characters between each character. PageStream supports a huge range of encoding methods, including UTF8. I would expect on the Mac your PageStream Type Preferences Character Set would be set to UTF-8 unless you had some very specific reason to change it.

I'm going to close this as "works for me", but if you can pass along additional details that allows someone else to reproduce the problem we can reopen it then.\n\n[Status updated to \'Works for Me\' on Thu, 29 Dec 2011 22:54:38 -0500]

T.J. Zweers wrote...2011-12-31 03:21:52

An idea, maybe wrong:
What did you assign to CharSet?
CharSet is found in Preferences and Tab: Type.

For Windows I have: Windows.
I don't know what it should or could be for the Mac!
I am not even sure if CharSet = Windows for me is the best option. I have no problems at the moment (with copy and past).

Janne Peräaho wrote...2011-12-31 03:49:40

I changed the charset to UTF-8 and pasting started to work.

I noticed an another problem: selecting UTF-16 character set and clicking Save makes PGS to crash. It happens every time. Shall I file a new bug report?

T.J. Zweers wrote...2011-12-31 07:03:18

Great!

I have the UTF-16 crashing problem also. So please do!

Add a Comment
Sign in to add a comment.

Bug #328 - Pasting can't handle Scandinavian/German characters by Janne Peräaho   
  created:2011-12-10 11:14:36   last updated:2011-12-10 11:14:36
  Copyright © 1985-2024 GrasshopperLLC. All Rights Reserved.


sign in to add a bug