Skip to content

Commit 5263c7d

Browse files
authored
Merge pull request #165 from spyoungtech/encodingfix
specify UTF8 for all outputs
2 parents 5ed5af7 + 7e44d4a commit 5263c7d

23 files changed

+28
-28
lines changed

ahk/templates/_daemon.ahk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,6 @@ Loop {
533533
func := commandArray[1]
534534
response := %func%(commandArray)
535535
newline_count := CountNewlines(response)
536-
FileAppend, %newline_count%`n, *
537-
FileAppend, %response%`n, *
536+
FileAppend, %newline_count%`n, *, UTF-8
537+
FileAppend, %response%`n, *, UTF-8
538538
}

ahk/templates/asynchotkey.ahk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% extends "base.ahk" %}
22
{% block body %}
33
{{ hotkey }}::
4-
FileAppend, `n, *
4+
FileAppend, `n, *, UTF-8
55
return
66
{% endblock body %}

ahk/templates/daemon.ahk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,6 @@ Loop {
541541
func := commandArray[1]
542542
response := %func%(commandArray)
543543
newline_count := CountNewlines(response)
544-
FileAppend, %newline_count%`n, *
545-
FileAppend, %response%`n, *
544+
FileAppend, %newline_count%`n, *, UTF-8
545+
FileAppend, %response%`n, *, UTF-8
546546
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{% extends "base.ahk" %}
22
{% block body %}
33
if (GetKeyState("{{ key_name }}"{% if mode %} , "{{ mode }}"{% endif %})) {
4-
FileAppend, 1, *
4+
FileAppend, 1, *, UTF-8
55
} else {
6-
FileAppend, 0, *
6+
FileAppend, 0, *, UTF-8
77
}
88
{% endblock body %}

ahk/templates/keyboard/key_wait.ahk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
{% block body %}
33
KeyWait, {{ key_name }}{% if options %} , {{ options }}{% endif %}
44

5-
FileAppend, %ErrorLevel%, *
5+
FileAppend, %ErrorLevel%, *, UTF-8
66
{% endblock body %}

ahk/templates/mouse/mouse_position.ahk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
CoordMode,Mouse,{{mode}}
44
MouseGetPos, xpos, ypos
55
s .= Format("({}, {})", xpos, ypos)
6-
FileAppend, %s%, *
6+
FileAppend, %s%, *, UTF-8
77
{% endblock body %}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends "base.ahk" %}
22
{% block body %}
33
RegRead,output,{{ key_name }},{{ value_name }}
4-
FileAppend, %output%, *
4+
FileAppend, %output%, *, UTF-8
55
{% endblock body %}

ahk/templates/screen/image_search.ahk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
CoordMode, Pixel, {{ coord_mode }}
44
ImageSearch,xpos,ypos,{{ x1 }},{{ y1 }},{{ x2 }},{{ y2 }},{% if options %}{% for option in options %}*{{ option }} {% endfor %}{% endif %}{{ image_path }}
55
s .= Format("({}, {})", xpos, ypos)
6-
FileAppend, %s%, *
6+
FileAppend, %s%, *, UTF-8
77
{% endblock body %}

ahk/templates/screen/pixel_get_color.ahk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
CoordMode, Pixel, {{ coord_mode }}
44
PixelGetColor,color, {{ x }}, {{ y }}{% if options %},{% for option in options %} {{ option }}{% endfor %}{% endif %}
55

6-
FileAppend, %color%, *
6+
FileAppend, %color%, *, UTF-8
77
{% endblock body %}

ahk/templates/screen/pixel_search.ahk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ CoordMode, Pixel, {{ coord_mode }}
44
PixelSearch, xpos, ypos, {{ x1 }}, {{ y1 }}, {{ x2 }}, {{ y2 }}, {{ color }} , {{ variation }}{% if options %},{% for option in options %} {{ option }}{% endfor %}{% endif %}
55

66
s .= Format("({}, {})", xpos, ypos)
7-
FileAppend, %s%, *
7+
FileAppend, %s%, *, UTF-8
88
{% endblock body %}

0 commit comments

Comments
 (0)