Skip to content

Commit

Permalink
Convert Table Data Macro to UTF-8
Browse files Browse the repository at this point in the history
Table data macro export files need to be converted from UTF-16 LE to UTF-8 before parsing the XML contents. #324, #325
  • Loading branch information
joyfullservice committed May 2, 2022
1 parent f30e251 commit 27a99c6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Version Control.accda.src/dbs-properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"Type": 10
},
"AppVersion": {
"Value": "3.4.21",
"Value": "3.4.22",
"Type": 10
},
"Auto Compact": {
Expand Down
6 changes: 5 additions & 1 deletion Version Control.accda.src/modules/modSanitize.bas
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,11 @@ Public Sub SanitizeXML(strPath As String)
Set rxLine = New VBScript_RegExp_55.RegExp

' Read text from file
strFile = ReadFile(strPath)
If HasUcs2Bom(strPath) Then
strFile = ReadFile(strPath, "Unicode")
Else
strFile = ReadFile(strPath)
End If
Perf.OperationStart "Sanitize XML"
curStart = Perf.MicroTimer

Expand Down
2 changes: 1 addition & 1 deletion Version Control.accda.src/vcs-options.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"Info": {
"AddinVersion": "3.4.21",
"AddinVersion": "3.4.22",
"AccessVersion": "14.0 32-bit"
},
"Options": {
Expand Down

0 comments on commit 27a99c6

Please sign in to comment.