<div dir="ltr"><span style="font-size:12.800000190734863px">Hey,</span><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px">I&#39;ve been looking at the init(contentsOfFile, usedEncoding) initializer for NSString in corelibs-foundation.</div><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px">Am I right in thinking that this initializer should use some method to attempt to detect the character encoding of the file before returning a decoded String?</div><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px">If so, I&#39;ve been working on a pure Swift library to detect string encodings, and wondered if continued work on it might be useful for implementing this missing initializer?</div><div style="font-size:12.800000190734863px"><br></div><div style="font-size:12.800000190734863px">Andy</div></div>