B4J Question What are the Encoding types for TextWriter?

stanmiller

Active Member
Licensed User
Longtime User
What are the character encoding types for TextWriter?

B4J - TextWriter Documentation
https://www.b4x.com/b4j/help/files.html#textwriter

2_textwriter_initialize2_zpsmxcgtihd.jpg


The documentation is unclear for B4A as well.

In section 15.9.6 Text Encoding of the B4 Beginners guide (v3.2), UTF-8 encoding is given with a dash between UTF and 8. But in the example there is no dash.

1_b4a_windows1252_utf8_example_zpsawsjonfj.jpg


But when Windows-1252 is specified in the example, the dash remains.

Is it "UTF8" or "UTF-8"? "Windows-1252" or "Windows1252"? "UTF16" or "UTF-16" ?
 
Top