On Jan 20, 4:30 pm, Jim Clark <jimfortheea...@earthlink.net> wrote: > Could anyone shed light on what is happening here? > > In a sage notebook cell I wish to load a python file; I wrote the command: > > load("/Users/jim/Documents/Fluid_Mechanics/AA543_HW2/physical_constants.py") > > which produces: > > SyntaxError: Non-ASCII character '\xce' in file > /Users/jim/Documents/Fluid_Mechanics/AA543_HW2/physical_constants.py on
If you type the following in a notebook cell: -------------------------------------------------------------- %sh xxd -g1 /Users/jim/Documents/Fluid_Mechanics/AA543_HW2/ physical_constants.py | head -------------------------------------------------------------- you'll see all first few bytes in your file. It should be pretty straightforward to spot the "ce" from that. (xxd is simply a hexdump command for unix. You don't have to do this in the notebook. In a terminal it would work equally well. Leave out the " | head " if you want to see the entire file) -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org