I checked the specification of length function. My above comment is wrong. I'm sorry for confusing. In the current postgresql, length function returns the number of characters regardless of whether string contains multi bytes characters or not.
However, like other string functions, length function should return NULL when its input string is NULL. This semantic is the same on almost all SQL functions.