Modify

#981 closed Feature Request (Completed)

_WinAPI_AnsiToOem + _WinAPI_OemToAnsi

Reported by: Zedna Owned by: Jpm
Milestone: 3.3.1.2 Component: Standard UDFs
Version: Severity: None
Keywords: Cc:

Description

Here is proposition for new UDF to WinApi include also with examples:

; Name...........: _WinAPI_AnsiToOem
; Description ...: Translates a string into the OEM-defined character set
; Syntax.........: _WinAPI_AnsiToOem($sText)

#cs
non english (accented) letters written to AU3 script from Scite (GUI)
must be converted to be correct in commandline output (CUI)
#ce
; Name...........: _WinAPI_OemToAnsi
; Description ...: Translates a string from the OEM-defined character set into either an ANSI or a wide-character string
; Syntax.........: _WinAPI_OemToAnsi($sText)

#cs
non english (accented) letters in output from CUI commandline tools (like PING, NET VIEW, ...)
must be converted to be correct in Windows GUI output (MsgBox)
#ce

Attachments (1)

_OemToAnsi.zip (1.5 KB ) - added by Zedna on May 26, 2009 at 10:40:13 AM.

Download all attachments as: .zip

Change History (4)

comment:1 by Jpm, on Jul 12, 2009 at 10:27:39 AM

Those functions already exist using _WinAPI_WideCharToMultiByte() and _WinAPI_MultiByteToWideChar() with $iCodePage = 1
I am just wondering if we should add this code to
ConsoleWrite($text [, $iCodePage = 0])

comment:2 by Jpm, on Aug 5, 2009 at 10:14:46 PM

I update the functions _WinAPI_WideCharToMultiByte() and _WinAPI_MultiByteToWideChar() to support "string" or struct as input and a new optional can force the return in a "string"

comment:3 by Jpm, on Aug 5, 2009 at 10:17:19 PM

Milestone: 3.3.1.2
Owner: changed from Gary to Jpm
Resolution: Completed
Status: newclosed

Added in version: 3.3.1.2

Modify Ticket

Action
as closed The owner will remain Jpm.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.