Bug Reports
VFP runtime error
Gravatar is a globally recognized avatar based on your email address. VFP runtime error
  Ming-Te
  All
  Feb 21, 2018 @ 12:44am

WebConnection-6.19.0 C:\WCONNECT\CLASSES\WWUTILS.PRG

*** Strip off UTF-8 BOM
IF STARTSWITH(lcRetVal,"??)
  lcRetVal = STRCONV(SUBSTR(lcRetVal,4),11)
ENDIF
Gravatar is a globally recognized avatar based on your email address. re: VFP runtime error
  Tore Bleken
  Ming-Te
  Feb 21, 2018 @ 01:07am

Something (or somebody..) must have changed a " into a ?. This is an excerpt from wwutils.prg, compare it to your own copy, and correct it if necessary:

   *** Strip off UTF-8 BOM
   IF STARTSWITH(lcRetVal,"?")
	 lcRetVal = STRCONV(SUBSTR(lcRetVal,4),11)
   ENDIF
Gravatar is a globally recognized avatar based on your email address. re: VFP runtime error
  Rick Strahl
  Ming-Te
  Feb 21, 2018 @ 01:34pm

This is due to the language I suppose. The characters of the string are not readable in Korean (?)?

The code should look like this:

IF STARTSWITH(lcRetVal,"")
   lcRetVal = STRCONV(SUBSTR(lcRetVal,4),11)
ENDIF

What's happening is that in Korean code page those characters are not part of the ASCII upper set so the characters are not valid - hence ??.

You might try this:

*** Strip off UTF-8 BOM
IF STARTSWITH(lcRetVal,CHR(239) + CHR(187) + CHR(191))  
   lcRetVal = STRCONV(SUBSTR(lcRetVal,4),11)
ENDIF

Fixed this in wwutils.prg.

+++ Rick ---

© 1996-2024