Closed tranhung148 closed 5 years ago
What language you are working with? I have tested English and some Chinese, Both works fine except ¥ siymb
发自我的 iPhone
在 2018年12月19日,下午5:19,tranhung148 notifications@github.com 写道:
I need print some text with encoding UTF-8. Seem this library does not support UTF-8. Is it right?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
here is a sample:
i am using vietnamese. I need write some words: ư, ơ, ă, â, ứ, ớ, ở, ô, .... In this below example, i am trying write text: "Người". But receive this result.
i was try pass param encoding "UTF-8" but didn't receive my expect
May i know what codeset your printer supports. I encode the bytes by GBK currently. My devices would cause issue while using UTF-8.
I found something shows UTF-8 would not resolve vietnamese problem neither.
It need some codding test for vietnamese but I cannot spare my time to it now.
Hey, is there a encoding where I can use the dolar sign? I'm from brazil, utf-8 really isn't working as expected.
Any thoughts on how can I proceed? I need to print phrases like "Preço R$ 5,00" and it prints "Pre?o R¥ 5,00" on encodings I've tried.
thankssss
You can play with SelfText and see if your printer accept the Portuguese....(codepage) BluetoothEscposPrinter.printText( "Preço", { encoding: 'Cp037', codepage: 3, widthtimes: 0, heigthtimes: 0, fonttype: 1 } ); You can find encoding here: https://docs.oracle.com/javase/8/docs/technotes/guides/intl/encoding.doc.html
Boa sorte.
Try this
BluetoothEscposPrinter.printText( "İŞÖÇİşiçöğü awd awdawdaad --**? \r\n", {
encoding: 'Cp1254',
codepage: 22,
widthtimes: 0,
heigthtimes: 0,
fonttype: 1
} );
Other options: Cp857, Cp1256, Cp1026
@gdierksmeier thanks bro. İm using codepage 32 with encoding Cp1254. Now working all turkish characters.
Hello, didn't want to make new issue ticket so I'll just ask here. Which encoding should I use for Croatian lagnuage? We are using latinic letters with addition of ć,č,š,ž and đ.
As others mentioned UTF8 or UTF-8 for encoding doesn't seem to work.
Or if you could point me to all the encodings supported so I can test them till I find suitable one.
Best regards, Bepo.
Hello @gdierksmeier can you please tell me which encoding i should use for printing Indian (Hindi ) language?
Sorry @vgvishal538 i have no experience with hindi....seems the solution is convert and print an image...
https://stackoverflow.com/questions/36645996/how-to-display-hindi-or-gujarati-font-using-bluetooth-printer
hello , which encoding should i use for printing Arabic text ?
anyone ? please.
We are using: ENCODING: ISO8859_6 CODEPAGE: 22
All depend of your printer...try also the combinations: "encoding": "Cp1256" or "encoding":" Cp864" with CODEPAGE: 22 or 32
@Iamstanlee did you get the Arabic encoding?
The best solution I find out is, Build your receipt in View component and style it as you like, do not forget to make the background of the view "white", and use "react-native-view-shot" to convert the view to an image then printPic by Bluetooth printer. Hope this helps.
hi, its printing arabic, but its printing it in the inverse way, like: علي مسرة its printing it ةرسم يلع any solution for that? and i am using these ENCODING: ISO8859_6 CODEPAGE: 22
fixed it by adding this.reverseString before the text
@alimasarra could you add snippet code?
Need some help with Swedish, anyone got lucky?
Have you try to check the codepage information?
发自我的 iPhone
在 2019年5月2日,上午5:11,Chengwei Ding notifications@github.com 写道:
Need some help with Swedish, anyone got lucky?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
BluetoothEscposPrinter.printText("Tiếng việt nè đm chúng m\n\n", {encoding: 'Cp1258',codepage:30});
@gdierksmeier I found Cp1258 and codepage 30 nearly display Vietnamese characters, are there any option? my device is Mini thermal printer 5802DD
@datvp09 máy in của e là Apos P100, e thử Cp1258 and codepage 30 như bác mà k in đc TV, có cách nào dò ra đc encoding và codepage chuẩn cho máy in của e k bác, thanks uuu
@quy1403 e tìm xem có file pdf guide của máy k, tìm đến phần text code gì đó có list ra 1 loạt encoding rồi từ đó thử codepage
@datvp09 e k tìm đc pdf guide, giờ k biết encoding vs codepage như nào, của a in tiếng việt ngon lành chứ, e đang có 2 máy xprinter và Apos ở đay mà loay hoay ko in đc, à cho e xin Skype có gì chat trao đổ
@billdoorsvn
e thử in 1 cái ảnh thì thấy tốc độ in khá trậm, vs có vẻ khá tốn mực, chứ k vèo vèo như in text a ơi, có cách nào in nhanh như in text k ạ
máy in nhiệt thì làm gì có mực :v bên mình dùng sunmi printer r, có thư viện hỗ trợ luôn cho khỏe
@tranhung148 sao lại close thế a ơi, vẫn chưa đc giải quyết mà a
@datvp09 a có skype ko cho e xin với , e hỏi a trực tiếp cho rõ khoản in ấn này ạ, help me please
Làm sau in được tiếng việt vậy bác @tranhung148
Hello @gdierksmeier can you please tell me which encoding i should use for printing Indian (Hindi ) language?
@vgvishal538 Have you found any encoding for hindi?
Hello. I have problem printer vietnamese. Can you help me?
await BluetoothEscposPrinter.printText('Tiếng Việt \r\n\r\n\r\n', { encoding: 'GBK', codepage: 32, // 27 or 22 or 30. widthtimes: 0, heigthtimes: 0, fonttype: 0, });
Thanks
Hello, For the euro sign the configuration is this:
{
encoding:' Cp858',
codepage: 13
}
for the French language
@quy1403 a đã tìm ra cách in tiếng việt trên con apos p100 chưa ạ, giúp em với
Không in được tiếng việt có dấu đâu.
Vào 15:24, T.3, 29 Th6, 2021 Bui Tuan Anh @.***> đã viết:
@quy1403 https://github.com/quy1403 a đã tìm ra cách in tiếng việt trên con apos p100 chưa ạ, giúp em với
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/januslo/react-native-bluetooth-escpos-printer/issues/8#issuecomment-870387853, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD5LEZ27UGV4VHPDI36Z3WTTVF7L5ANCNFSM4GLHKTAQ .
Làm sau in được tiếng việt vậy bác @tranhung148
@datvp09 e k tìm đc pdf guide, giờ k biết encoding vs codepage như nào, của a in tiếng việt ngon lành chứ, e đang có 2 máy xprinter và Apos ở đay mà loay hoay ko in đc, à cho e xin Skype có gì chat trao đổ
Ra chưa anh ơi, em cũng đang dùng con xprinter ạ. Cứu em với :))
Chuyển thứ cần in sang image rồi in ra kiểu image là được. Nhược điểm là máy in sẽ in lâu hơn nhưng được cái tiếng việt
Chuyển thứ cần in sang image rồi in ra kiểu image là được. Nhược điểm là máy in sẽ in lâu hơn nhưng được cái tiếng việt
Cảm ơn anh ạ
Chuyển thứ cần in sang image rồi in ra kiểu image là được. Nhược điểm là máy in sẽ in lâu hơn nhưng được cái tiếng việt
À anh dùng thư viện gì để chuyển sang image vậy ạ, tks anh
Máy nào có hỗ trợ tiếng việt thì in được, mình thử 4, 5 con có một con không hỗ trợ, k tài nào in được, chuyển sang image thì có tiếng việt nhưng siêu chậm
Vào Th 4, 21 thg 7, 2021 vào lúc 14:12 NguyenThanhNhuJS99 < @.***> đã viết:
Chuyển thứ cần in sang image rồi in ra kiểu image là được. Nhược điểm là máy in sẽ in lâu hơn nhưng được cái tiếng việt
À anh dùng thư viện gì để chuyển sang image vậy ạ, tks anh
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/januslo/react-native-bluetooth-escpos-printer/issues/8#issuecomment-883949581, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF2QJ66EULT2LND3NLGDFPTTYZXOHANCNFSM4GLHKTAQ .
Chuyển thứ cần in sang image rồi in ra kiểu image là được. Nhược điểm là máy in sẽ in lâu hơn nhưng được cái tiếng việt
À anh dùng thư viện gì để chuyển sang image vậy ạ, tks anh
Load 1 bitmap từ local( nền trắng). Draw text lên bitmap image đó rồi in ra
i was try pass param encoding "UTF-8" but didn't receive my expect
@tranhung148 anh đã in được tiếng Việt chưa ạ. Cho e giải pháp với
e cũng đang gặp vấn đề trên iOS. ko tìm đc encoding hỗ trợ tiếng việt. mn chỉ e với. may xprint (cắm máy tinh in blue thì có hỗ trợ tiếng việt)
BluetoothEscposPrinter.printText("Tiếng việt nè đm chúng m\n\n", {encoding: 'Cp1258',codepage:30});
@gdierksmeier I found Cp1258 and codepage 30 nearly display Vietnamese characters, are there any option? my device is Mini thermal printer 5802DD
@d6mobile Bác dùng cách này thử xem. Còn k thì in bằng image thôi, hơi chuối thật.
mọi người có giải pháp chưa vậy, em đang cần in trên iOS? nếu dùng image thì chậm quá, chỉ còn các bỏ dấu rồi in ra nhưng như vậy thì không ổn tí nào.
Hello @vgvishal538 Have You Found Any Encoding That Print Indian Languages ? Please Tell Me.
I have a generic solution to print any language, including Vietnamese. It's not perfect but will work definitely. 1) You need to find code page that support your language. E.g.: 27, 30, 31, 32 are known Code Page for Vietnamese. 2) Encoding your text with correct encoder. E.g: TCVN-3 is correct one for Vietnamese. Please refer to this link for more detail.
I need print some text with encoding UTF-8. Seem this library does not support UTF-8. Is it right?