If you're using fpdf, this will do the trick:
reload(sys)
sys.setdefaultencoding("latin-1")
2016-03-02 8:47 GMT+01:00 xmarx <[email protected]>:
> i haven't find solution yet but i found rigth source to explore.
> http://pyfpdf.readthedocs.org/en/latest/Web2Py/index.html
>
> if i find, i will post here.
>
> 1 Mart 2016 Salı 21:04:44 UTC+2 tarihinde xmarx yazdı:
>
>> i have a page in charset utf-8.
>>
>> say testpdf.html
>>
>> when i type testpdf.pdf, some of non-ascii characters have been lost.
>> what can i do?
>>
>> second question, have can i specify styles of paragaphs, titles etc? it
>> doesn't recognize some of css styles.
>>
>> thank you.
>>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.