| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 7083|Reply: 8
Collapse the left

About limit of doings max letter

[Copy link]

 Korea, Republic of

Post time: 2012-02-21 12:20
| Show all posts |Read mode
Edited by ionobgy at 2012-2-21 13:26

I can write doings at space to max 200 letter.

In case of english, frances, etc, it is well.
But In case of  other languages (korean, chinese.. 2 byte code language) although I can write to max 200 letters (400byte), but on view screen, doing sentence is  truncated (may be 100 letters).

2 byte language as like korean language, max letter limit of writing doings must be 100 letters as same as the view screen.

 Russia

Post time: 2012-02-21 12:51
| Show all posts
The "message" field in the database is of TEXT type, and it's size is limited only by server available memory.

But this length is controlled in X2 by php code, JS code, and by templates.
This verifying algorithms must be revised...

 Korea, Republic of

 Author| Post time: 2012-02-22 08:10
| Show all posts
Edited by ionobgy at 2012-2-22 09:16
vot replied at 2012-2-21 13:51
The "message" field in the database is of TEXT type, and it's size is limited only by server availab ...

At original discuz, above problem is absent.
one korean letter is 3 byte at original discuz.
At here, one korean letter is 1 byte.

Is letter count algorythm different from original discuz?

 Russia

Post time: 2012-02-22 10:30
| Show all posts
At here, one korean letter is 1 byte.

You are wrong.
Every korean letter is a ONE CHARACTER length,
but in UTF-8 encoding every single character can consist of 2~6 bytes.

 Russia

Post time: 2012-02-24 19:49
| Show all posts
Fixed.
Now the maximum length of "doing" (mood) is not 200 bytes,
but 200 UTF-8 characters !

http://code.google.com/p/discuzx-en/source/detail?r=371

 Korea, Republic of

 Author| Post time: 2012-02-25 03:39
| Show all posts
Edited by ionobgy at 2012-2-25 05:22
vot replied at 2012-2-24 20:49
Fixed.
Now the maximum length of "doing" (mood) is not 200 bytes,
but 200 UTF-8 characters !

Thank you for your effort.
But that bug is not corrected.
Korean  1 character is still 1 utf character.
and then I am able to write total 200 korean character.
I am able to write 66 korean character (1 korean character is same as 3 utf  character) on original discuzx.

But doing record is totally viewed at space view.
At past, overflow character is replaced with "...", but at 371 ML ver, total characters(I entered) is viewed without "...".

Although that bug is not corrected, I prefer this condition (not concaternated sentence and  korean character over 66 character(66*3=utf 200 character))

My opinion is that your correction is more rational.
I think that in spite of language, doing limit must be same, not along utf character limit.
At original discuzx, korean character limit (66 character) is too short.

Your correction is good for me korean.

 Russia

Post time: 2012-02-25 09:22
| Show all posts
But that bug is not corrected.
Korean  1 character is still 1 utf character.
and then I am able to write total 200 korean character.

I did not understand...
If you can now write 200 corean characters, it means the problem is solved! Isn't it??

 Korea, Republic of

 Author| Post time: 2012-02-25 09:48
| Show all posts
Edited by ionobgy at 2012-2-25 10:50
vot replied at 2012-2-25 10:22
I did not understand...
If you can now write 200 corean characters, it means the problem is solved! ...

In original discuz, korean character is limited 66 characters because 1 korean character is same as  3 utf character.

My problem is solved because the doing at space is not concaternated at ver 371.

And then thanks to you for that solving.



 Russia

Post time: 2012-02-25 09:53
| Show all posts
hanks to you for that solving

You are welcome
You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-11-23 18:42 GMT+3 , Processed in 0.083945 sec., 8 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list