Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing SERIOUS TYPO in UCS2-to-UTF-8 conversion (wrong threshold for …

…2 byte versus 3 byte symbol in output
  • Loading branch information...
commit 65c71f43663512dad04319912403f83a2137aa1d 1 parent 6cfa2c0
@bkidwell authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  AppCodeImportExport.bas
View
2  AppCodeImportExport.bas
@@ -238,7 +238,7 @@ Private Sub ConvertUcs2Utf8(source As String, dest As String)
If in_high = 0 And in_low < &H80 Then
' U+0000 - U+007F 0LLLLLLL
BinWrite f_out, in_low
- ElseIf in_high < &H80 Then
+ ElseIf in_high < &H8 Then
' U+0080 - U+07FF 110HHHLL 10LLLLLL
BinWrite f_out, &HC0 + ((in_high And &H7) * &H4) + ((in_low And &HC0) / &H40)
BinWrite f_out, &H80 + (in_low And &H3F)
Please sign in to comment.
Something went wrong with that request. Please try again.