error "Not the start of the UTF-8 sequence"

Kagamin spam at here.lot
Wed Apr 6 02:53:41 PDT 2011


spir Wrote:

> Hello,
> 
> I get this error message:
> 	Not the start of the UTF-8 sequence
> without any other comment module name or whatnot.
> 
> This happens when I just added toString to the following struct, and used it:
> 
>      struct Node {
>          // Note: level is equal to the number of chars up to this node.
>          // Note: a 'path' node without entry has key="".
>          char ch;
>          uint level;
>          Key key;
>          Value value;
>          ...
>          string toString() {
>              if (this.key != "")
>                  return format("<%s %s:%s>", this.ch, this.key, this.value);
>              else
>                  return format("<%s>", this.ch);
>          }
>      }
> 
> Hints? I'm blocked :-(
> 
> Denis
> -- 
> _________________
> vita es estrany
> spir.wikidot.com
> 

     struct Node {
         // Note: level is equal to the number of chars up to this node.
         // Note: a 'path' node without entry has key="".
         dchar ch;



More information about the Digitalmars-d-learn mailing list