Changed file opening to default to UTF-8.

This commit is contained in:
niel-archer 2012-02-01 11:09:33 +00:00
parent 31919e31cd
commit 706cd4aff2
3 changed files with 5 additions and 1 deletions

View file

@ -2223,7 +2223,7 @@ namespace LSLEditor
{ {
if (File.Exists(path)) if (File.Exists(path))
{ {
StreamReader sr = new StreamReader(path, Encoding.Default); StreamReader sr = new StreamReader(path, Encoding.UTF8);
this.Text = sr.ReadToEnd(); this.Text = sr.ReadToEnd();
sr.Close(); sr.Close();
} }

Binary file not shown.

View file

@ -47,6 +47,10 @@
<li>llSetLinkCamera</li> <li>llSetLinkCamera</li>
<li>llSetRegionPos</li> <li>llSetRegionPos</li>
</ul> </ul>
- Changed:
<ul>
<li>Opening files now assumes UTF-8 instead of ANSI format. At some point I'd like to make it auto-detecting for all supported formats.</li>
</ul>
</div> </div>
<div> <div>
<h3><span class="date">2012-01-01</span> - Release 2.44.0</h3> <h3><span class="date">2012-01-01</span> - Release 2.44.0</h3>