Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi Line Text with New Lines print question marks #209

Closed
Reflic opened this issue Oct 30, 2016 · 7 comments
Closed

Multi Line Text with New Lines print question marks #209

Reflic opened this issue Oct 30, 2016 · 7 comments
Labels

Comments

@Reflic
Copy link

Reflic commented Oct 30, 2016

I have the following problem, while using the libary. Maybe i have missed a bit of important information than please just give me a hint.

I use a Serial Connected Printer and have a Webseite where you can enter some text in a textbox. If I am putting some text there and press enter and then start writing some more text.
Alle New Lines are printed as question marks...

Have i missed a setting for encoding or something like that?

Input:

test1


test2

Print:

test1?
?
?
test2
@mike42
Copy link
Owner

mike42 commented Oct 30, 2016

Hi Kevin,

You may have found a bug. Are you by any chance sending Windows line endings?

@Reflic
Copy link
Author

Reflic commented Oct 30, 2016

I thought this also, do you have any idea how i can test this?

The printer is connected to a Linux System, the problem occurs on the
Website aswell on Mac as on Ubuntu.

Thanks for your help!

Am 30.10.2016 um 23:31 schrieb Mike:

Hi Kevin,

You may have found a bug. Are you by any chance sending Windows line
endings?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#209 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABkd-iwn8tgTwzh-d52rlGymrs1710NQks5q5RqzgaJpZM4KkaWl.

@mike42
Copy link
Owner

mike42 commented Oct 30, 2016

See if you can use a FilePrintConnector to write to a file, then use hexdump, I would say.

@Reflic
Copy link
Author

Reflic commented Nov 1, 2016

Ok, will test that as soon as i have the time to :)

mike42 added a commit that referenced this issue Nov 3, 2016
Previously, "\r\n" would cause "?\n" to appear in the output, but now "\r\n" is wound back
to "\n" on its own.
@mike42 mike42 added the bug label Nov 3, 2016
@mike42
Copy link
Owner

mike42 commented Nov 3, 2016

I've just made a point release (v1.4.2) which allows Windows line endings to be used without triggering question marks. I suspect this will fix the issue you're seeing.

Can you update and re-test?

@mike42
Copy link
Owner

mike42 commented Nov 12, 2016

The fix in #210 works for me, closing this off.

Thanks for reporting.

@Reflic
Copy link
Author

Reflic commented Nov 29, 2016

Sorry for my late answer had a lot of work todo. Your Release fixed the problem and it were the wrong line endings. Thanks for you fast response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants