Search the Community
Showing results for tags 'eml'.
Found 3 results
As for the object, in this case the StringReplace() function does not work for me. These are my steps: 1) Extract the subject from an EML file. (the first character is an emoji ) source from EML file: $sSubject = "?utf-8?B?8J+TiCA1IG9mIHRoZSBCZXN0IFN0b2NrcyB0byBCdXkgZm9yIERlY2VtYmVy?=" 2) in this case I perform a decoding with _QuotedPrintable_DecodeEncodedWord() output is: $sSubject = "?? 5 of the Best Stocks to Buy for December" 3) I perform StringReplace(): $sSubject = StringReplace($sSubject, "??", "") or $sSubject = StringReplace($sSubject, Chr(63)&Chr(63), "") But the characters ?? they are not replaced. Yet if I make an Asc of every character of the string with a for loop, are the first two characters really? that is 63 For cycle Local $aArray = StringSplit($sSubject, "", $STR_NOCOUNT) For $i = 0 To UBound($aArray)-1 ConsoleWrite($aArray[$i] & " - " & Asc($aArray[$i])& @CR) Next Output: ? - 63 ? - 63 - 32 5 - 53 - 32 o - 111 f - 102 - 32 t - 116 h - 104 e - 101 - 32 Does anyone have an explanation of why it doesn't work? Thank you all