Spanish [Solucionado] Uso de BytesToString - angel_    
Jun 3, 2020No acabo de entender el punto 13 y cómo se puede aplicar, ¿alguien lo podría explicar? también me serviría un enlace o un ejemplo, me...
link: Excelente explicación, muchas gracias...
link: conversión (en este caso de bytes a String) es correcto si es reversible. Para que se cumpla esto, no...
B4A Library [B4X] B4XEncryption - Erel    
Sep 10, 2025   
(24 reactions)   
tags: B4XEncryption, Security, encrypt, B4A DecryptText(EncryptedData() As Byte, password As String) As String
Dim c As B4XCipher
Dim b() As Byte = c.Decrypt(EncryptedData, password)
Return BytesToString(b, 0, b.Length, "utf8"... it on a different platform.
Usage example:
Sub EncryptText(text As String, password As String) As Byte...This library allows you to encrypt or decrypt data using the AES encryption method.
To prevent...:
B4XEncryption - B4A
jB4XEncryption - B4J
iEncryption - B4i (Encrypt and Decrypt methods)
It is simple to use...
B4A Question BytesToString(Buffer,0,Buffer.Length,"UTF8") - Hamied Abou Hulaikah    
Jan 29, 2017when i use BytesToString(Buffer,0,Buffer.Length,"UTF8") it returns result of logging to modem,my problem that it returns text English and some modems return unrecognized character
i tried many charset like (windows-1256 ,windows-1250,iso......)but it still not English understandable text
any solutions please?...
link: The solution is to use the correct encoding. The correct one depends on your modem....
B4A Tutorial [B4X] Optional sub parameters - Erel    
Aug 26, 2026   
(26 reactions) optional sub parameters in Java library:
public static String BytesToString(byte Data...,
@DefaultValue("UTF-8") String CharSet)
'calling:
BytesToString(b)
BytesToString(b, 0, b...
link: Thanks very interesting. I have a question
Public Sub BytesToString(Data() As Byte, StartOffset...
link:
Thanks very interesting. I have a question
Public Sub BytesToString(Data() As Byte, StartOffset...
B4J Question BytesToString Charset - MarrowZero (first post)    
Jun 13, 2021Thanks Erel, thats the sort of answer I was looking for ;)...
link: this code to find all available charsets, this list can vary:
Sub GetCharsets As List
Dim...
link: Yep, 'ASCII' works and thanks for the link to that thread about Encoding. However, how...
link:
I'd like to feedback that if the CharSet value is missing, you'll get a compile error. Its...
B4A Question Question about the function BytesToString - Deleted member 103 (first post)    
Mar 21, 2019 -128 to 127 (NOT the unsigned bytes 0 to 255 of most everywhere else) (including ARGB color components ;-)
2/ B4A chars and strings are 16-bit, and can thus hold values outside of the range of a byte...
link: -128 to 127 (NOT the unsigned bytes 0 to 255 of most everywhere else) (including ARGB color components...
link: @emexes
Since everything works with iso-8859-1 in B4a, I will use it in the future.
Thank you for t...
link: (BytesToString(Buffer, 0, Buffer.Length, charset))
Dim StringToAdd As String = BytesToString(Buffer, 0...
German B4I: Exception bei BytesToString bei Umlauten - KMatle (first post)    
Jan 5, 2019Kannst du den entsprechenden Code posten?...
link: verabschiedete sich bei Aufruf von BytesToStream mit einer Exception und der Meldug das die Bytes...
B4A Question how to serialize the int 128 using BytesToString - Erel (first post)    
Oct 30, 2017Please use code here... tags when posting code.
Your code is wrong.
The input to BytesToString must be bytes that represent a string. You should use r.ReadInt to convert the binary data to an int....
link:
'convert the byte array into a string
Dim s As String = BytesToString( b, 0, 4, "US-ASCII"...
B4A Question Missing ) in BytesToString - Eldritch (first post)    
Mar 30, 2015Duuuh, stupid me. Writing VBS code and not B4A. Thanks for the help:-)...
link: )
Return BytesToString(bytes, 0, bytes.Length, "utf-8")
Else...
link:
ReturnSubject = BytesToString(bytes, 0, bytes.Length, "utf-8")
Word: )
The ')'...
Other New release: B4A v14.0 with optional parameters - Erel    
Sep 2, 2026   
(46 reactions)() As Byte = "aaaa".GetBytes("UTF-8")
'''
Dim s As String = BytesToString(b, 0, b.Length, "UTF-8")
'To:
Dim b() As Byte = "aaaa".GetBytes
'''
Dim s As String = BytesToString(b)
'From:
Dim j As HttpJob
j.Initialize("", Me) 'unused JobName and always "Me"
j.Download(url)
'To:
Dim j As HttpJob
j...B4A v14.0 follows B4J v10.7 and adds the optional parameters feature to B4X programming language...
Page: 1  
2  
3  
4  
5  
6  
7