Re: Read the file in the proper encoding

2016-07-19 Thread OderWat
Writing transparently re-encoding open/read functions for general usage may be possible but is hardly a "system level" functionality. I guess that should need to go into an extra (external) module. Adding BOM to the encodings module may be interesting. But technically I think it belongs into th

Read the file in the proper encoding

2016-07-19 Thread Garry_Galler
Will it be possible in the future to add to the system a procedure for open\read file in the proper encoding? While I use this variant: import strutils proc readFile*(filePath:string, sourceEncoding:string, destEncoding:string = "UTF8"): Ta