groenkek / HUPP

A collection of helpful Mathematica (11.3) bits for the GPR at my local university
The Unlicense
0 stars 0 forks source link

utf8 CharacterEncoding - needed for deplay? #9

Open groenkek opened 5 years ago

groenkek commented 5 years ago

The current deplay script mentions the need to use the utf-8 CharacterEncoding - was it a necessity for the file to load after "deployment" or is it just a momentarily requirement for the copy?

groenkek commented 5 years ago

How did I do it in the past? Ofcourse only added $CharacterEncoding="UTF-8" into $UserBaseDirectory/Kernel/init.m

groenkek commented 5 years ago

An automatic installation would include:

  1. Has this installer not been used yet
  2. Does the System support UTF-8
  3. Is the SystemEncoding different from Encoding (= is there already a different encoding command in use?)
  4. Append $CharacterEncoding = bla bla to $UserDirectoryBase/kernel/init.m
  5. Quit[], so that the changes will be loaded on next execution
groenkek commented 5 years ago

The thing is, on some systems, like on my partners mac laptop, the system character encoding is set to utf8, which does not require a manual entry into the user space kernel.m, but I need to on my windows. Not really a blocker really