Maybe you're right. But I have displayed several blocks with different 
text, and if I change 400 to 401 or 403 or any other number. In some units 
this symbol appears.

How can I solve this problem?



вторник, 29 июля 2014 г., 3:18:44 UTC+6 пользователь Derek написал:
>
> ok, so my guess is that this is unicode text, so it's not counting 400 
> characters, it's counting 400 bytes, so it may potentially cut off a byte 
> thus making an invalid unicode character. You can probably change it from 
> 401 to 400 or 402, just to make sure you are cutting at the appropriate 
> place.
>
>
> On Thursday, July 24, 2014 11:48:34 PM UTC-7, Капылов Данил wrote:
>>
>> When displaying text in some text at the end appears. and some do not. In 
>> this text there is no character. How to fix it was not? 
>>
>>                 <p>
>>                 {{if len(row.body)>400:}}
>>                     {{=(row.body[:401] + '. . .')}}
>>
>>                 {{else:}}
>>                     {{=row.body}}
>>                 {{pass}}
>>                 </p>
>>
>>
>>
>> <https://lh6.googleusercontent.com/-nJ-gIznhEXY/U9H9XFh4YOI/AAAAAAAAHrA/GLFnau6ffbk/s1600/simvol.png>
>>
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to