Author Topic: [Request] UTF8 flag  (Read 1486 times)

Offline Ascension64

  • Planewalker
  • *****
  • Posts: 472
[Request] UTF8 flag
« on: February 10, 2012, 04:12:49 PM »
I'm requesting that WeiDU allow a force-set of the codepage to UTF8 (on Windows systems) to solve problems with needing all kinds of different code pages for different languages. The biggest issue currently is Russian Windows XP cmd (OEM866) vs Windows 7 cmd (cp1251), where simply using one of these code pages will not display characters properly on the other, and vice versa.

The syntax would simply be "UTF8" wherever tp2 allows a Tp2 Flag, and would set/change the code page of the install cmd to UTF-8 so that all installation prompts will be printed in UTF-8 code page. The standard behaviour should remain as is current in WeiDU 231 for backwards compatibility.

As Unix and OSX should already use UTF8, this would only be a Windows system change.

From a cmd perspective, earlier than Windows 95, one could use "chcp 65001" to set the UTF8 code page. Not sure if there are better API for this.

Possible?
« Last Edit: February 10, 2012, 04:20:51 PM by Ascension64 »

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: [Request] UTF8 flag
« Reply #1 on: February 10, 2012, 04:33:41 PM »
OCaml doesn't know about character encoding, unfortunately.
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

Offline Ascension64

  • Planewalker
  • *****
  • Posts: 472
Re: [Request] UTF8 flag
« Reply #2 on: February 10, 2012, 11:25:35 PM »
Edit: Nevermind, it looks like cmd.exe has no support for codepage 65001 anyway.
If there was a way for OCaml to do tricks with character encoding, that would have been nice.
« Last Edit: February 10, 2012, 11:46:18 PM by Ascension64 »

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: