When uploading a plain text resource, the file will be expected to be in UTF-8 encoding. If you wish to use a different encoding when uploading the file, the "Content Type" field can be used to specify this through the use of the optional charset parameter. For example:
text/plain; charset=ISO-8859-1