Tim Roberts wrote:
>
> You're relying on a bunch of automatic conversions here, some of which
> do conversions that you don't want.
>
> "j" is not a string here -- it is a Table object.  The default property
> of the Table object is a Range object.  The default property of the
> Range object is the Text object, which IS a Unicode string.  So, instead
> of relying on the default conversions, if you say this explicitly:
>
>     for j = doc.Tables
>         xxx = j.Range.Text
>
> you'll find that xxx *IS* a Unicode string.
>   

The astute reader will, of course, have noticed and fixed the silly
syntax in my for statement:
    for j in doc.Tables:
        xxx = j.Range.Text

-- 
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.

_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to