You are here: PSPad forum > Bug report / Hlášení chyb > Re: batch encoding error report

Re: batch encoding error report

#1 batch encoding error report

Posted by: cyberchicken | Date: 2020-04-09 22:04 | IP: IP Logged

I get "No mapping for the Unicode character exists in the target multi-byte code page." when batch encoding some files.
Sources are all detected as "ANSI default (0)" or utf-8 no BOM (which is realistic) and converted to utf-8 no BOM.
The problem is that the process halts halfway, and still I cannot figure out which file the process chokes onto.
What can I do to find the offending file?
Thank you

Exception class: EEncodingError
Exception address: 0043A4E1
----------------------------------------------------------------------------------------------------
Stack list, generated 09/04/2020 23:54:56
[0043A4DC] System.SysUtils.TEncoding.GetString + $F0
[004CA636] System.Classes.TStrings.LoadFromStream + $AA
[009CB1B6] uBatchCPConvert.TfBatchCPConvert.bStartConversionClick (Line 138, "uBatchCPConvert.pas" + 22) + $A
[00697F0F] Vcl.Controls.TControl.Click + $73
[00583F4A] Vcl.StdCtrls.TCustomButton.Click + $1E
[00584A60] Vcl.StdCtrls.TCustomButton.CNCommand + $C
[006979B6] Vcl.Controls.TControl.WndProc + $2BE
[0069C46B] Vcl.Controls.TWinControl.WndProc + $63B
[00583BF4] Vcl.StdCtrls.TButtonControl.WndProc + $6C
[006975F0] Vcl.Controls.TControl.Perform + $24
[0069C5CF] Vcl.Controls.DoControlMsg + $23
[0069D053] Vcl.Controls.TWinControl.WMCommand + $B
[006657C9] Vcl.Forms.TCustomForm.WMCommand + $45
[006979B6] Vcl.Controls.TControl.WndProc + $2BE
[0069C46B] Vcl.Controls.TWinControl.WndProc + $63B
[00662449] Vcl.Forms.TCustomForm.WndProc + $64D
[0069BA38] Vcl.Controls.TWinControl.MainWndProc + $2C
[004E012C] System.Classes.StdWndProc + $14
[0069C57A] Vcl.Controls.TWinControl.DefaultHandler + $E6
[0069835C] Vcl.Controls.TControl.WMLButtonUp + $10
[004E012C] System.Classes.StdWndProc + $14
[006979B6] Vcl.Controls.TControl.WndProc + $2BE
[0069BC27] Vcl.Controls.TWinControl.IsControlMouseMsg + $13
[0069C46B] Vcl.Controls.TWinControl.WndProc + $63B
[00583BF4] Vcl.StdCtrls.TButtonControl.WndProc + $6C
[0069BA38] Vcl.Controls.TWinControl.MainWndProc + $2C
[004E012C] System.Classes.StdWndProc + $14
[0066BE37] Vcl.Forms.TApplication.ProcessMessage + $F3
[0066BE7A] Vcl.Forms.TApplication.HandleMessage + $A
[0066C1AD] Vcl.Forms.TApplication.Run + $C9
[00A278E0] PSPad.PSPad (Line 104, "PSPad.dpr" + 45) + $7
----------------------------------------------------------------------------------------------------
Program  : C:\MyLocalPrograms\Tools\PSPad_left\PSPad.exe  5.0.3 (377)
System   : Windows 7 Professional x64, Version: 6.1, Build: 1DB1, Service Pack 1
Processor: AMD, AMD FX-8370E Eight-Core Processor              , 3320 MHz MMX
Display  : 1600x1200 pixels, 32 bpp PPI: 96
----------------------------------------------------------------------------------------------------
Active Controls Hierarchy:
TButton "bStartConversion"
TfBatchCPConvert "fBatchCPConvert"
----------------------------------------------------------------------------------------------------

Options: Reply | Quote | Up ^


#2 Re: batch encoding error report

Posted by: Vany | Date: 2020-04-17 15:47 | IP: IP Logged

You could chect the "out" folder for the list of successfully converted files and probably the one you are looking for is the next in the source folder behind the last processed one.

source
a.txt
b.txt
c.txt

out
a.txt

so the suspicious file is b.txt

--
Vany
(PSPad 5.0.4 (505) x32, W10h/p x64 en/cs)

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2020 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR