• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Russian language?

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, I've kinda installed the JForum, but there are two problems:
[list=1]
[*]All russian text I try to input (cyrillics) in the administration panel for forum/category names and descriptions is turned into question marks on the next update. I've tried to change the page charset to KOI8-R in templates with no luck. The strings in MySQL are all "???". I believe MySQL default charset is KOI8-R for me (my other servlets work this way).
[*]Well I can't actually see effect on creating categories and forums. The forum list is empty...[/list]
Any clues? :roll:
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That was me.

P.S. The "list=1" tag in phpbb would create numbered list (
    ) as far as I remember
    [originally posted on jforum.net by Daniil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

well, I never tried it with other encodings :?
Maybe there is some problem with the code I use to save the properties, or kinda.. as I don't have much experience with this kind of problem, any help is welcome

On "list" tag: I currently only supports [list] ( I guess hehehe ).

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No Exceptions. everythink works "fine", I think Java replaces cyrillics with "?"s silently somewhere.

Do you modify jdbc URL to include some charset information (should work fine without)? Do you care about charset when reading form data?

The funny thing is that on your forum at jForum.net, my Galeon seems to convert cyrillics to HTML entities (like this: немного кириллицы ('some cyrillycs' - Rus.)) so it's not important what the java/mysql/html charset really is, except for sorting/collation problems with database maybe and the space overhead.

Any clues on that browser behavior?
[originally posted on jforum.net by Daniil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And why I cannot see any forums, although I've created some with admin panel?

Oops, I cannot add users as well (in the admin panel, I am moved to the forum title page if I choose to insert a new user, and no "register" link there)

Update: ups, I can register, needed to logout first 8)
[originally posted on jforum.net by Daniil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Daniil wrote:And why I cannot see any forums, although I've created some with admin panel?



hhmm.. I guess I fixed this.. strange.. well, if the problem is the one I think, then you should give access rights to the forums. For example, after you create some forum, go the Group administration, click on "Permissions" link and just click "Save". It should work.

But, as far I remeber, I changed the database to create forums with "allowed by default" rights.. I'll take a check on that.

Danii wrote:
Oops, I cannot add users as well (in the admin panel, I am moved to the forum title page if I choose to insert a new user, and no "register" link there)

Update: ups, I can register, needed to logout first 8)





Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Daniil wrote:No Exceptions. everythink works "fine", I think Java replaces cyrillics with "?"s silently somewhere.

Do you modify jdbc URL to include some charset information (should work fine without)? Do you care about charset when reading form data?



Nope, I didn't at all... Suggestions?

Daniil wrote:
The funny thing is that on your forum at jForum.net, my Galeon seems to convert cyrillics to HTML entities (like this: немного кириллицы ('some cyrillycs' - Rus.)) so it's not important what the java/mysql/html charset really is, except for sorting/collation problems with database maybe and the space overhead.

Any clues on that browser behavior?



I need to verify this behaviour, since it is kinda new to me :x

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rafael Steil wrote:

Daniil wrote:And why I cannot see any forums, although I've created some with admin panel?



hhmm.. I guess I fixed this.. strange.. well, if the problem is the one I think, then you should give access rights to the forums. For example, after you create some forum, go the Group administration, click on "Permissions" link and just click "Save". It should work.


Yep, works after that woodoo!
[originally posted on jforum.net by Daniil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rafael Steil wrote:

Daniil wrote:No Exceptions. everythink works "fine", I think Java replaces cyrillics with "?"s silently somewhere.

Do you modify jdbc URL to include some charset information (should work fine without)? Do you care about charset when reading form data?



Nope, I didn't at all... Suggestions?


OK.

I think if you do all of this:...
  • Make htmls use Utf-8 charset. <meta http-equiv="content-type" context="text/html; chatset=Utf-8">
  • Force the forms to use Utf-8 charset. <form accept-charset="Utf-8">
  • request.setCharacterEncoding("Utf-8"); in servlet code
  • BufferedWriter out = new BufferedWriter(new OutputStreamWriter(response.getOutputStream, "Utf-8"));


  • in servlet code to get output writer...then forum will use Utf-8 nearly everywhere. Except the MySQL, which doesn't support Utf-8 yet, so JDBC driver will replace characters that can't be represented propertly in the charset MySQL uses with '?'s.

    Maybe there are other way (without Utf-8), I don't know.

    Hmm... How does that "list" tag really works?..
    [originally posted on jforum.net by Daniil]
     
    Migrated From Jforum.net
    Ranch Hand
    Posts: 17424
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator

    Daniil wrote:
    Hmm... How does that "list" tag really works?..



    heheheh..

    the regex is:



    it works veeeeeeeeeeery in a different fashion :roll: ( currently, at least )

    Rafael
    [originally posted on jforum.net by Rafael Steil]
     
    Migrated From Jforum.net
    Ranch Hand
    Posts: 17424
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator

    Rafael Steil wrote:
    the regex is:

    [...]

    it works veeeeeeeeeeery in a different fashion :roll: ( currently, at least )



    Got it

    So what do you think about Utf-8?
    [originally posted on jforum.net by Daniil]
     
    Migrated From Jforum.net
    Ranch Hand
    Posts: 17424
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator

    Daniil wrote:

    Rafael Steil wrote:

    Daniil wrote:No Exceptions. everythink works "fine", I think Java replaces cyrillics with "?"s silently somewhere.

    Do you modify jdbc URL to include some charset information (should work fine without)? Do you care about charset when reading form data?



    Nope, I didn't at all... Suggestions?


    OK.

    I think if you do all of this:...
  • Make htmls use Utf-8 charset. <meta http-equiv="content-type" context="text/html; chatset=Utf-8">
  • Force the forms to use Utf-8 charset. <form accept-charset="Utf-8">
  • request.setCharacterEncoding("Utf-8"); in servlet code
  • BufferedWriter out = new BufferedWriter(new OutputStreamWriter(response.getOutputStream, "Utf-8"));


  • in servlet code to get output writer...then forum will use Utf-8 nearly everywhere. Except the MySQL, which doesn't support Utf-8 yet, so JDBC driver will replace characters that can't be represented propertly in the charset MySQL uses with '?'s.

    Maybe there are other way (without Utf-8), I don't know.

    Hmm... How does that "list" tag really works?..



    hhmm.. ok.. I will change and put in the cvs as soon I can.

    Thanks

    Rafael
    [originally posted on jforum.net by Rafael Steil]
     
    Migrated From Jforum.net
    Ranch Hand
    Posts: 17424
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Thanks to you! Great work overall!

    BTW, I've installed it here for now (my home computer): http://dan.solutions.lv/forum/
    [originally posted on jforum.net by Daniil]
     
    Migrated From Jforum.net
    Ranch Hand
    Posts: 17424
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator

    Daniil wrote:Thanks to you! Great work overall!

    BTW, I've installed it here for now (my home computer): http://dan.solutions.lv/forum/



    hmm.. it gives an exception when I access :evil:

    damn.. that's sound jforum code error..

    And I'll remove the xhtml markups, since I haven't converted all files to xhtml..

    Rafael
    [originally posted on jforum.net by Rafael Steil]
     
    Migrated From Jforum.net
    Ranch Hand
    Posts: 17424
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    well, I cannot say exactly why you are getting that session error.. if you could put a breakpoint in JForum.java to try look out for a possible problem, it would be nice

    Rafael
    [originally posted on jforum.net by Rafael Steil]
     
    Migrated From Jforum.net
    Ranch Hand
    Posts: 17424
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator

    Rafael Steil wrote:well, I cannot say exactly why you are getting that session error.. if you could put a breakpoint in JForum.java to try look out for a possible problem, it would be nice

    Rafael


    Whoa, this would require me to start tomcat under jdb, which is not too easy I guess... Well. I could try, but breakpoint where?

    BTW, have you tried to use asserts in your source?
    [originally posted on jforum.net by Daniil]
     
    Migrated From Jforum.net
    Ranch Hand
    Posts: 17424
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Ops, so looks like I didn't post the exception trace after all. This is the last one I got in catalina.out:

    java.lang.ArrayIndexOutOfBoundsException: 3
    at net.jforum.ActionServletRequest.<init>(ActionServletRequest.java:256)
    at net.jforum.JForum.service(JForum.java:433)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:286)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:254)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:256)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:210)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:190)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:175)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:207)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:647)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:489)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:575)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:649)
    at java.lang.Thread.run(Thread.java:566)

    [originally posted on jforum.net by Daniil]
     
    Migrated From Jforum.net
    Ranch Hand
    Posts: 17424
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    The java.net CVS is down

    Well.. go sleep dude :-) .. tomorow is a new day ;)

    Rafael
    [originally posted on jforum.net by Rafael Steil]
     
    Migrated From Jforum.net
    Ranch Hand
    Posts: 17424
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    OK!
    [originally posted on jforum.net by Daniil]
     
    Migrated From Jforum.net
    Ranch Hand
    Posts: 17424
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Probably the introcuduction of a new config variable, called forum_charset or alike, would be better way then hard-coding the Utf-8. But this would arise a mapping problem between Java charsets and "the rest of a world" charsets, since they aren't the same (just look at the CPxxx vs Windows-xxx madness). Of course, java forum code and html templates should use corresponding charsets. But hard-coding Utf-8 is better than hard-coding iso8851-1 I think

    Well, anyway... Will you make release with Utf-8 or should I use current CVS (how)?
    [originally posted on jforum.net by Daniil]
     
    Migrated From Jforum.net
    Ranch Hand
    Posts: 17424
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator

    Daniil wrote:Probably the introcuduction of a new config variable, called forum_charset or alike, would be better way then hard-coding the Utf-8.



    I already did this way

    Daniil wrote:
    Well, anyway... Will you make release with Utf-8 or should I use current CVS (how)?



    am gonna release 3.1 after I fix one more little bug. The regexp problem is aparentely fixed as well, at least for now

    Rafael
    [originally posted on jforum.net by Rafael Steil]
     
    Migrated From Jforum.net
    Ranch Hand
    Posts: 17424
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Cool! 8)
    [originally posted on jforum.net by Daniil]
     
    Migrated From Jforum.net
    Ranch Hand
    Posts: 17424
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    I'd like to test polish letters: �〠���?���ҁ?�ȁ?�ɀ�������?�݁?��
    [originally posted on jforum.net by Anonymous]
     
    Migrated From Jforum.net
    Ranch Hand
    Posts: 17424
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    a release of version with utf-8 (as parameter of hardcoded) would be very welcome. i'd like to use jforum, but it has to handle polish letters, which this version does, and rc3.1 doesn't.
    [originally posted on jforum.net by Anonymous]
     
    Migrated From Jforum.net
    Ranch Hand
    Posts: 17424
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator

    Anonymous wrote:a release of version with utf-8 (as parameter of hardcoded) would be very welcome. i'd like to use jforum, but it has to handle polish letters, which this version does, and rc3.1 doesn't.



    As you realized, the current version running on jforum.net supports cyrilic chars. I am planing to release RC4 ( the cvs version ) in the next days ( probably before july 15th )..

    Rafael
    [originally posted on jforum.net by Rafael Steil]
     
    Migrated From Jforum.net
    Ranch Hand
    Posts: 17424
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    So I have a little request: could you put current version to cvs? I logged to cvs as anonymous, but there's nothing in it. This would be very helpful, as the changes I am going to make (translation of interface to polish) can easily be used in rc4 as well.
    Thanx 4 fast response
    [originally posted on jforum.net by Anonymous]
     
    Migrated From Jforum.net
    Ranch Hand
    Posts: 17424
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    You should use the cvs from java.net ( jforum.dev.java.net ),and not from sourceforge

    Rafael
    [originally posted on jforum.net by Rafael Steil]
     
    Migrated From Jforum.net
    Ranch Hand
    Posts: 17424
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Let's test also stressed chars (such as the ones from italian alphabet...): they're giving me some problems on my jforum board (same ? replacing probs)

    ��̬���?�?


    [originally posted on jforum.net by Anonymous]
     
    Water! People swim in water! Even tiny ads swim in water:
    We need your help - Coderanch server fundraiser
    https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
    reply
      Bookmark Topic Watch Topic
    • New Topic