Giter Club home page Giter Club logo

Comments (10)

Megachip avatar Megachip commented on August 16, 2024

Which OS did you use? (File is already UTF-8)
https://github.com/vboxme/Portable-VirtualBox/blob/master/data/language/french.ini

from portable-virtualbox.

runarbu avatar runarbu commented on August 16, 2024

I have done some testing with the French and Russian language files on Windows 8 and Windows 10, and the utf character do indeed looks broken

Windows 10
French: http://runarb.com/div/pvutf/win10_french.png
Russian: http://runarb.com/div/pvutf/win10_russian.png

Windows 8
French: http://runarb.com/div/pvutf/win8_french.png
Russian: http://runarb.com/div/pvutf/win8_russian.png

from portable-virtualbox.

Megachip avatar Megachip commented on August 16, 2024

@runarbu so looks like autoIt did not interpret the encoding of the textiles correctly.

https://www.autoitscript.com/autoit3/docs/intro/unicode.htm

from portable-virtualbox.

runarbu avatar runarbu commented on August 16, 2024

This seems to work if the files get encoded with UTF-16 LE with BOM.

I have looked at the encoding of the other language files also and they are in several different formats:

catalan.ini : UTF-8 BOM
chinese.ini : GB 2312 (Simplified)
english.ini : UTF-8
french.ini : UTF-8 BOM
german.ini : ANSI
italian.ini : ANSI
japanese.ini : Shift-JIS
polish.ini : ANSI
portuguese.ini : ANSI
russian.ini : Windows-1251
spanish.ini : ANSI
ukrainian.ini : Windows-1251

(formats as reported by Notepad++ )

@Megachip : any suggestion on what to do? Shall we just set the French language file to UTF-16 LE with BOM for now?

from portable-virtualbox.

Machou avatar Machou commented on August 16, 2024

I'm on Windows 7 =)

Please use UTF-8 without BOM for all files :)

from portable-virtualbox.

Megachip avatar Megachip commented on August 16, 2024

@Machou "The recommended script format is UTF-8 with BOM" ... so I think we should not remove it. Also I can't se any differences in my editor. Did you try the language file without the BOM Header? Is language shown correct?

@runarbu we should at least use ONE encoding for all language files. Except Japanese and Chinese, all would work in ANSI. But it didn't feels the right way.
If I'm right, IniRead (

If $new1 = 1 AND $new2 = 0 Then
Local $dialog = IniRead ($var2 & $lng &".ini", "check", "02", "NotFound") &" "& $ov_d &" "& IniRead ($var2 & $lng &".ini", "check", "06", "NotFound") &" "& $nv_d &" "& IniRead ($var2 & $lng &".ini", "check", "07", "NotFound")
EndIf
If $new1 = 0 AND $new2 = 1 Then
Local $dialog = IniRead ($var2 & $lng &".ini", "check", "03", "NotFound") &" "& $os_d &" "& IniRead ($var2 & $lng &".ini", "check", "06", "NotFound") &" "& $ns_d &" "& IniRead ($var2 & $lng &".ini", "check", "07", "NotFound")
EndIf
If $new1 = 1 AND $new2 = 1 Then
Local $dialog = IniRead ($var2 & $lng &".ini", "check", "04", "NotFound") &" "& $ov_d &" "& IniRead ($var2 & $lng &".ini", "check", "06", "NotFound") &" "& $nv_d &" "& IniRead ($var2 & $lng &".ini", "check", "05", "NotFound") &" "& $os_d &" "& IniRead ($var2 & $lng &".ini", "check", "06", "NotFound") &" "& $ns_d &" "& IniRead ($var2 & $lng &".ini", "check", "07", "NotFound")
EndIf
GUICreate (IniRead ($var2 & $lng &".ini", "check", "01", "NotFound"), 300, 190, -1, -1, $WS_POPUP)
GUISetFont (9, 400, 0, "Arial")
GUISetBkColor (0xFFFFFF)
GUICtrlSetFont (-1, 10, 800, 0, "Arial")
GUICtrlCreateLabel ($dialog, 14, 8, 260, 50)
GUICtrlSetFont (-1, 9, 800, "Arial")
$Checkbox200 = GUICtrlCreateCheckbox (IniRead ($var2 & $lng &".ini", "check", "08", "NotFound"), 14, 62, 260, 14)
GUICtrlCreateLabel (IniRead ($var2 & $lng &".ini", "check", "09", "NotFound"), 14, 82, 280, 10)
GUICtrlSetFont (-1, 8, 800, 4,"Arial")
$Input300 = GUICtrlCreateLabel ("", 14, 96, 260, 20)
GUICtrlSetFont (-1, 8, 400, 0,"Arial")
GUICtrlCreateButton (IniRead ($var2 & $lng &".ini", "check", "10", "NotFound"), 32, 116, 100, 33, 0)
GUICtrlSetFont (-1, 9, 800, "Arial")
GUICtrlSetOnEvent (-1, "UpdateYes")
GUICtrlCreateButton (IniRead ($var2 & $lng &".ini", "check", "11", "NotFound"), 160, 116, 100, 33, 0)
GUICtrlSetFont (-1, 9, 800, "Arial")
GUICtrlSetOnEvent (-1, "UpdateNo")
) did not support UTF-8.

There are some solutions on google. Did not know, which is the best. But if recoding the file solves the problem, we should use (and test) this first ;)

from portable-virtualbox.

Machou avatar Machou commented on August 16, 2024

Yes i have try (without BOM & normal) no work ^^

from portable-virtualbox.

p060477 avatar p060477 commented on August 16, 2024

hi runar!
so you are still alive!!
why you do not reply about the issues with the network bridge and win 10..??..
pls hit a bit..my canterville ghost..
:(

from portable-virtualbox.

phenri avatar phenri commented on August 16, 2024

I converted the language file ini from utf to ansi and seem fixed.
#48

from portable-virtualbox.

p060477 avatar p060477 commented on August 16, 2024

hi runar a simple question still unanswered by you:
is now portable vb completely suitable with win 10?
i mean is useable the network BRIDGED?
or we are still forced to use only NAT server?
pls reply clearly!

from portable-virtualbox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.