Forum > Translations
cross platform text with European accents .
lazer:
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---echo -en '\xEF\xBB\xBF' > BOM.dat cat BOM.dat test.utf8 > test.txt
Seems to work . Thanks for pointing out that win32 puts a byte order marker in file with single byte data ;) I would not have guessed.
dseligo:
--- Quote from: lazer on November 03, 2022, 11:43:32 am ---I need to find a stable format.
--- End quote ---
Use XML then and don't do checksum on whole file but only on data.
dseligo:
--- Quote from: lazer on November 03, 2022, 01:49:46 pm ---win32 puts a byte order marker in file with single byte data
--- End quote ---
Not win32, but Notepad. There are editors that don't put BOM (automatically) in file.
lazer:
Notepad is part of the default windows installation since Win3.1 IIRC. It's Windows.
Navigation
[0] Message Index
[*] Previous page