View Issue Details

IDProjectCategoryView StatusLast Update
0005389JEDI VCL00 JVCL Componentspublic2012-02-29 16:55
ReporterZENsanAssigned ToAHUser 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product VersionDaily / GIT 
Target VersionFixed in Version3.45 
Summary0005389: JvStrToHtml.HtmlToString do not converts characters { and ሴ
DescriptionJvStrToHtml.HtmlToString do not converts characters { and ሴ

There is workaround for HtmlToString function (maybe some optimization is required):
              // if no conversion was found, it may actually be a number
              if Ch = #0 then
                begin
                  ReplStr := Copy(ReplStr, 2, Length(ReplStr) - 2);
                  if Copy(ReplStr, 1, 1) = '#' then
                    begin
                      Delete(ReplStr, 1, 1);
                      if SameStr(Copy(ReplStr, 1, 1), 'x') then
                        ReplStr[1] := '$';
                    end;
                  if StrToIntDef(ReplStr, -1) <> -1 then
                    Ch := Chr(StrToInt(ReplStr))
                  else
                    begin
                      I := Start;
                      Ch := Value[I];
                    end;
                end;
TagsNo tags attached.

Activities

outchy

2010-11-05 13:03

administrator   ~0018001

Shouldn't this issue be moved to the JVCL project? There is nothing related to HTML inside JclStrings.pas from the JCL.

ZENsan

2010-11-05 13:05

reporter   ~0018002

ops.. Yes, it is for JVCL. Sorry.

obones

2010-11-09 14:19

administrator   ~0018037

Please provide the zipped sources of a sample application showing this.

2010-11-09 14:46

 

JediHtml.rar (5,398 bytes)

ZENsan

2010-11-09 14:48

reporter   ~0018055

I also uploaded there JvStrToHtml2.pas, which converts HTML perfectly. Because original code misses a lot of entities! And also it loses Unicode characters!

ZENsan

2010-11-23 13:40

reporter   ~0018149

Any news?

AHUser

2010-11-27 19:15

developer   ~0018186

Fixed in svn revision 12912.

Issue History

Date Modified Username Field Change
2010-11-04 18:21 ZENsan New Issue
2010-11-04 18:21 ZENsan IDE version => Delphi/C++Builder XE
2010-11-05 13:03 outchy Note Added: 0018001
2010-11-05 13:05 ZENsan Note Added: 0018002
2010-11-06 11:41 outchy Project JEDI Code Library => JEDI VCL
2010-11-06 11:42 outchy Category JclStrings => 00 JVCL Components
2010-11-06 11:42 outchy Product Version Version 2.3 (Subversion repository/Daily zips) => Daily / SVN
2010-11-06 11:42 outchy Summary JvStrToHtml.HtmlToString do not converts characters { and &#x1234; => JvStrToHtml.HtmlToString do not converts characters { and &#x1234;
2010-11-06 11:42 outchy Description Updated
2010-11-09 14:19 obones Note Added: 0018037
2010-11-09 14:19 obones Status new => feedback
2010-11-09 14:46 ZENsan File Added: JediHtml.rar
2010-11-09 14:48 ZENsan Note Added: 0018055
2010-11-23 13:40 ZENsan Note Added: 0018149
2010-11-27 19:15 AHUser Note Added: 0018186
2010-11-27 19:15 AHUser Status feedback => resolved
2010-11-27 19:15 AHUser Fixed in Version => Daily / SVN
2010-11-27 19:15 AHUser Resolution open => fixed
2010-11-27 19:15 AHUser Assigned To => AHUser
2012-02-29 16:55 obones Fixed in Version Daily / SVN => 3.45