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

ReadBufferStream not support latine 1 on Mobile #297

Open
ledinhthi opened this issue Jul 29, 2022 · 6 comments
Open

ReadBufferStream not support latine 1 on Mobile #297

ledinhthi opened this issue Jul 29, 2022 · 6 comments

Comments

@ledinhthi
Copy link

Today, i got problem about this function ReadBufferStream, but when i run , i got this The "latin1" encoding is not supported,
please help me to solve this

@ledinhthi
Copy link
Author

@richard-viney please help me

@ledinhthi
Copy link
Author

@richard-viney do we have any example for conver pdf, image to dcm and send, thank you so much

@richard-viney
Copy link
Contributor

I happened to run into a character set issue last week which is now fixed in this PR: #299. This change might address your problem, but without providing a failing test case it's hard to say.

If you're interested in understanding how DICOM handles image data this article might be of interest: http://dicomiseasy.blogspot.com/2012/08/chapter-12-pixel-data.html

@ledinhthi
Copy link
Author

ledinhthi commented Jul 31, 2022 via email

@richard-viney
Copy link
Contributor

Sorry no I haven't worked with PDF data in DICOM files yet. There are likely some resources around on how it works though.

@niraj22384
Copy link

niraj22384 commented May 19, 2023

Hi ledinhthi

Seems post 0.24.7 version of library, BufferStream.js was modified to use default textdecoding to 'latin1' and which is not supported on Mobile. Previous version of library (0.24.7 and below) its working.

Try changing new TextDecoder("latin1"); present in BufferStream.js to new TextDecoder("utf-8"); see if resolves the issues.

Thanks

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

No branches or pull requests

3 participants