On 3/29/2017 2:36 PM, Richard Hipp wrote:
Most of the world is using UTF-8 now.

I'm wondering how that can be for programming language source files.

I managed to put the "bom" in front of a one-line tcl script:

puts "This is a copyright symbol: ©."

where the '©' was previously converted to utf-8 by fossil.

gvim now reads the file and renders the utf-8 '©' as a '©'
notepad displays the file and renders the utf-8 '©' as '©'

>but<

$ /c/Program\ Files/tcl/bin/tclsh u.tcl
invalid command name "puts"
    while executing
"puts "This is a copyright symbol: ©.""
    (file "k.tcl" line 1)

While adding the option "-encoding utf-8" to the tclsh command line makes it work, it does not work when I double-click on the .tcl file as I have no way to set any sort of encoding option -- unless I have to make a windows shortcut for each and every .tcl file that I want to run and put the -encoding there.

So, how can one use a program source file encoded in utf-8?
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to