B4J Question [jNet] lib with e-mail charsert problem

Tayfur

Well-Known Member
Licensed User
Longtime User
I send e-mail with based of HTML.
But I saw results of before and after not same.
REsult html code nome same , its missing some chars.

I reading from file for row source.
File.readstring(File.DirrAPP, "html.txt")

problem maybe is txt file must be "ANSI" / "UTF"???

LOG'S RESULT in HTML source (see <Meta> line)
B4X:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
<style>
table {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
}


RESULT CODE IN OUTLOOK :(see <meta> line)

B4X:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv=ontent-Type" content=ext/html; charset=ndows-1254">
<style>
table {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
}
 
Last edited:

DonManfred

Expert
Licensed User
Longtime User
Use textreader for example and read the file using the right encoding to have it UTF8 in your app.
The point is that you need to read it right.
File.readstring expect the file to be UTF8 encoded.
 
Upvote 0
Top