aspose file tools*
The moose likes Testing and the fly likes Do Jmeter support utf charaters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Do Jmeter support utf charaters" Watch "Do Jmeter support utf charaters" New topic
Author

Do Jmeter support utf charaters

cheenu goyal
Greenhorn

Joined: Dec 17, 2007
Posts: 11
i have a list of 19000 utf characters and i am trying to read that file through my script using JMeter for automation testing but i am not able to do that .Is there any known bug related to this or is there any way out .

looking forward for your replies
Regards
varun


Gud Luck <br /> <br />Regards <br />Varun <br />Delhi
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41834
    
  63
What does "i am not able to do that" mean? What exactly are you doing, and what is happening? Are there any error messages? TellTheDetails


Ping & DNS - my free Android networking tools app
cheenu goyal
Greenhorn

Joined: Dec 17, 2007
Posts: 11
ali right there are no error messages . I have an application which is messaging based and i want to automatically message to other user and content of message is read from file which contains utf characters , now the message is posted succesfully sometimes but most of times it shows null message or at times it shows ?? or rectangle instead of the original character .
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41834
    
  63
Where does it show questions marks or rectangles? Many Unicode characters require special fonts installed; if those are missing, those two outcomes are the most frequent ones.
cheenu goyal
Greenhorn

Joined: Dec 17, 2007
Posts: 11
it shows rectangles or ?? in my message posting area after successfull posting. you can imagine our application like orkut where we scrap public profiles , here i am trying to automate it from reading file instead of manually doing it as there are infinite utf chracters
cheenu goyal
Greenhorn

Joined: Dec 17, 2007
Posts: 11
Let me try to explain you the logic of my jmeter script.
1) I have an excel sheet (unicode.xls) which has 19,000 unicode characters, i have converted this sheet into a unicode.txt (unicode txt format).
2) My script has a config element (CSV Data Set Config) which reads unicode.txt file.
3) I have used a HTTP Post request with content encoding as (UTF-8) as a child of Loop Controller, with the reference of parameter of unicode.txt file.
Problem encountered: The HTTP Post request is not able to read the unicode characters from the unicdoe.txt file. It is converting the characters as a garbage value.
I am not sure if Jmeter HTTP Post request supports unicode characters. Can you please help where i am stuck or there is some other paramter which i have to use while reading these unicode from a txt file. Looking forward to hear from you.

Best Regards
Varun Goyal
Delhi
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41834
    
  63
There are all kinds of things that could be going wrong here that have little or nothing to do with JMeter.

First I'd check that the file actually is properly UTF-8 encoded. Make sure you specify that encoding when opening the file - UTF-8 is not the platform default encoding on any operating system I know of.

HTTP has no problems using any encoding you can think of. Make sure the server process handles it properly (and specifies the correct encoding when generating the response).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Do Jmeter support utf charaters