Message Boards Message Boards

0
|
1166 Views
|
0 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Strange error while importing the text file

Recently I got the following error while importing an usual text file obtained by copy/paste from a web page. The file contains some combinations of symbols that cause the error. The combination (in hex) looks like

enter image description here

(first 3 symbols are BOM, Byte Order Mark). In a text editor the file looks like a symbol

enter image description here

The code

Import[StringJoin[ NotebookDirectory[], "ErrorText.txt"], "Text"]

causes the error "An error of unspecified nature occurred." in Messages box. But next operator

StringLength[%]

returns 2 as string length. The text file is available here (only 9 bytes in length)

POSTED BY: Konstantin Nosov
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract