[opensuse] my qrestions
Hello I use zxing api for create QR code. text in code its base64 encrypted without empty space. (string a). I save QR code. When I open QR code I get text with blank space (string b) how I remowe blank space? I try witn comand substring, replaceAll, trim ... string a = “aUBvbHFhQEBtanJlckBAQGVlLEBAQEBAQEBAamtAQEBtaXRlb0BAQGlnb0BkQEBA” string b = “aUBvbHFhQEBtanJlckBAQGVlLEBAQEBAQEBAamtAQEBtaXRlb0BAQGlnb0BkQEBA ” regards, igor -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 9/19/18 8:47 PM, Igor Kresnik wrote:
Hello I use zxing api for create QR code. text in code its base64 encrypted without empty space. (string a). I save QR code. When I open QR code I get text with blank space (string b) how I remowe blank space? I try witn comand substring, replaceAll, trim ... string a = “aUBvbHFhQEBtanJlckBAQGVlLEBAQEBAQEBAamtAQEBtaXRlb0BAQGlnb0BkQEBA” string b = “aUBvbHFhQEBtanJlckBAQGVlLEBAQEBAQEBAamtAQEBtaXRlb0BAQGlnb0BkQEBA ”
regards, igor
language = ? Sounds like Java, so either of your choices should work (with the correct params). Have a nice day, Berny -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
[re-adding the list] You dropped the mailing list from the recipient list, so nobody - but eventually me - could help you further on this. It would be better to keep the discussion in the public: more eyes, more power. ;-) On 9/20/18 8:04 PM, Igor Kresnik wrote:> Bernhard Voelker je 20.9.2018 ob 0:30 napisal:
On 9/19/18 8:47 PM, Igor Kresnik wrote:
Hello I use zxing api for create QR code. text in code its base64 encrypted without empty space. (string a). I save QR code. When I open QR code I get text with blank space (string b) how I remowe blank space? I try witn comand substring, replaceAll, trim ... string a = “aUBvbHFhQEBtanJlckBAQGVlLEBAQEBAQEBAamtAQEBtaXRlb0BAQGlnb0BkQEBA” string b = “aUBvbHFhQEBtanJlckBAQGVlLEBAQEBAQEBAamtAQEBtaXRlb0BAQGlnb0BkQEBA ”
regards, igor language = ?
Sounds like Java, so either of your choices should work (with the correct params).
I create program in java with netbeans 8.2. JDK its 1.8. for showing text I use jtextarea (I use this for input text). If I write text like; sample text with space . and I use comand string besedilo; besedilo = myvnos.getText( ); beseda2 =besedilo.replaceAll(" ", ""); myvnos.setText(beseda2); I get text without spaces like: sampletextwithspace. But if I open QR code I cant remove empty space
This sounds very specific to Java and the libraries you're using. Therefore, I'm afraid we can't help you much here. I suggest you ask on a Java mailing list, and add more details about how exactly you tried to "open QR code" and what exactly happened instead of your expectation (instead of "cant remove empty space"); was was the output, was there an error message (exception in case of java), etc. With this, I'm positive that you'll get help on a Java mailing list. Have a nice day, Berny -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Bernhard Voelker
-
Igor Kresnik