Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8067881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:28:41+00:00 2026-06-05T12:28:41+00:00

I generate an FXML file with Scene Builder. I need it to contain some

  • 0

I generate an FXML file with Scene Builder. I need it to contain some cirillic text.

When i edit this file with Scene Builder i can see normal cirillic letters (screen 1)

After compileing and running my program with this FXML file, i can see not cirillic letters, but some artefacts (screen 2)

But, as you can see on the screen 3, its xml file encoding is UTF-8. Also, you can see there that it is saved in ANSI.

I’ve tried to open it with other editors (default eclipse and sublime text 2) and they shoen wrong encoding either. (screen 4 and screen 5)

At first i’ve tried to convert it from ansi to utf-8 (with notepad++).

After that eclipse and sublime text 2 started display cirillic letters as they must be.

But. Scene builder gave an error, when i’ve tried to open this file with it:

Error loading file 
C:\eclipse\workspace\pr\src\main\java\ru\i\ava\pr\test.fxml.
C:\eclipse\workspace\pr\src\main\java\ru\i\ava\pr\test.fxml:1: ParseError 
at [row,col]:[1,1]
Message: Content is not allowed in prolog.

And java compiler gave me an error:

 июн 08, 2012 8:11:03 PM javafx.fxml.FXMLLoader logException
 SEVERE: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
 Message: Content is not allowed in prolog.
 /C:/eclipse/workspace/pr/target/classes/ru/i/ava/pr/test.fxml:1
 at javafx.fxml.FXMLLoader.load(Unknown Source)
 at javafx.fxml.FXMLLoader.load(Unknown Source)
 at javafx.fxml.FXMLLoader.load(Unknown Source)
 at javafx.fxml.FXMLLoader.load(Unknown Source)
 at javafx.fxml.FXMLLoader.load(Unknown Source)
 at javafx.fxml.FXMLLoader.load(Unknown Source)
 at ru.i.ava.pr.PrFX.start(PrFX.java:22)
 at com.sun.javafx.application.LauncherImpl$5.run(Unknown Source)
 at com.sun.javafx.application.PlatformImpl$4.run(Unknown Source)
 at com.sun.javafx.application.PlatformImpl$3.run(Unknown Source)
 at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
 at com.sun.glass.ui.win.WinApplication.access$100(Unknown Source)
 at com.sun.glass.ui.win.WinApplication$2$1.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)

 Exception in Application start method
 Exception in thread "main" java.lang.RuntimeException: Exception in Application start method
at com.sun.javafx.application.LauncherImpl.launchApplication1(Unknown Source)
at com.sun.javafx.application.LauncherImpl.access$000(Unknown Source)
at com.sun.javafx.application.LauncherImpl$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
 Caused by: javafx.fxml.LoadException: javax.xml.stream.XMLStreamException: ParseError at    
 [row,col]:[1,1]
 Message: Content is not allowed in prolog.
at javafx.fxml.FXMLLoader.load(Unknown Source)
at javafx.fxml.FXMLLoader.load(Unknown Source)
at javafx.fxml.FXMLLoader.load(Unknown Source)
at javafx.fxml.FXMLLoader.load(Unknown Source)
at javafx.fxml.FXMLLoader.load(Unknown Source)
at javafx.fxml.FXMLLoader.load(Unknown Source)
at ru.i.ava.pr.PrFX.start(PrFX.java:22)
at com.sun.javafx.application.LauncherImpl$5.run(Unknown Source)
at com.sun.javafx.application.PlatformImpl$4.run(Unknown Source)
at com.sun.javafx.application.PlatformImpl$3.run(Unknown Source)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.access$100(Unknown Source)
at com.sun.glass.ui.win.WinApplication$2$1.run(Unknown Source)
... 1 more
    Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
    Message: Content is not allowed in prolog.
at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(Unknown Source)
at javax.xml.stream.util.StreamReaderDelegate.next(Unknown Source)
... 14 more

So, i’ve converted it back to ANSI.

And, having this file in ANSI, changed its “artefacted” text to cirillic letters manually.

Now i can see normal text when i run my program, but when i open this fixed file via Scene Builder,

Scene Builder shows me some “artefacted” text (screen 7).

So, how can i fix this situation?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T12:28:43+00:00Added an answer on June 5, 2026 at 12:28 pm

    I’ve just found that new version of Scene Builder does not have such problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I generate some code using CXF from a WSDL-file. When compiling the code with
I generated an FXML using scene builder. Now the problem is when I try
To generate dependency files I can use something like this to generate dependency files:
I generate my web service from WSDL file. But I need t o define
I generate the XML by reading the text form .txt file. But I got
I generate some PDF via XSLT transformation (FOP) from XML. The PDF file is
I need to use JDOM to generate XML files, which could be pretty big.
I generate dynamically graphic in my controller: if not file exists (unique filename) then
I generate a pdf file from HTML using Pisa: def fetch_resources(uri, rel): path =
I generate graphml file from my application writing in Delphi7. Every thing is fine

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.