×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: "Invalid characters in the message" error

"Invalid characters in the message" error 16 years 4 months ago #468

  • baijianpeng
  • baijianpeng's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 0
I tested !JoomlaComment v3.26 with my Joomla! 1.0.15 installation today. My testing website is in Chinese language and utf-8 encoding.

I had enabled AJAX in the backend of this component.

When posting new comment in Chinese language, there will pop-up an window and show me following error message:

There are Invalid characters in the message.

I checked what it shows and found this component can't handle Chinese punctuation and line wrap properly.

Though there is an error message, in fact the comment was submited and published. But these are some characters can't be shown correctly inside the published comment.

Please fix this.

Thanks.

"Invalid characters in the message" error 16 years 4 months ago #469

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
What is the database collation that you use?
Was that the exact message: "There are Invalid characters in the message." I can not find such a text.

"Invalid characters in the message" error 16 years 4 months ago #470

  • baijianpeng
  • baijianpeng's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 0
I use utf8_general_ci as the database collation.

That sentence was shown in Chinese language, I can't find it in the language file either. So I think it may be the Javascript error message for AJAX ?

I translated that message to "There are Invalid characters in the message" . It was shown in a pop-up window.

"Invalid characters in the message" error 16 years 4 months ago #478

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Please look in the Chinese language file and tell me to what Constant it is ordered to, so I can look in the files and find out why such a message shows.

"Invalid characters in the message" error 16 years 4 months ago #479

  • baijianpeng
  • baijianpeng's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 0
In fact, I had already did that search in the language file. But no match.

The original error message in Chinese is "文本内容中发现无效字符" .

I suggest you test this component v3.26 with inputing following Chinese words as a comment :
乔纳森(伊万·迈克格雷格饰)是个生活乏味的会计师,每天就是从家到办公室、从办公室到家的两点一线。不过最近他交了一个新朋友怀特(休·杰克曼饰),后者是位律师,外表看起来风度翩翩,让乔纳森很是艳羡。怀特邀请乔纳森参加一个神秘的性爱俱乐部。在那里,乔纳森几乎到了天堂一般,可以跟各种他梦想中的完美女人谈情说爱,好不欢快。然而乔纳森刚进去没多久,就卷入了一个女人的失踪案里,与此相关的还有一宗巨款劫案。乔纳森被当成了头号嫌疑犯,百口莫辩的他终于开始清醒,想要探寻这个俱乐部背后的秘密以及怀特的真实身份……

I was using IE7 browser.

Thanks.

"Invalid characters in the message" error 16 years 4 months ago #482

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hm, funny enough - I don't get any error message and the comment is published, but there are 7-8 characters as ? (in this post I only see 3)

"Invalid characters in the message" error 16 years 4 months ago #483

  • baijianpeng
  • baijianpeng's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 0
Yes, I also got those Chinese words posted, but there would be a pop-up error message and strange symbols in the comment message.

I also did another test: I tried to post those Chinese words on a English version of Joomla!. There still came the same pop-up error message. So I think that message is not from your component, but from the same Browser software - IE7 .

You see, you also get some ??? marks. That means this component can't handle Chinese characters properly.

Please try to fix this.

Thanks.
  • Page:
  • 1
Time to create page: 0.107 seconds