Skip to content

Commit

Permalink
UTF8 Karakter Sorunu Çözüldü.
Browse files Browse the repository at this point in the history
  • Loading branch information
CMLDMR committed Oct 26, 2018
1 parent 26465f5 commit 48086d9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
12 changes: 6 additions & 6 deletions SerikBelediyesiWebSayfasi/src/giriswidget.cpp
Expand Up @@ -3573,7 +3573,7 @@ void Giris::Personel::PersonelWidget::initMenu()

menu->addItem("Bilgilerim", Wt::cpp14::make_unique<Bilgilerim>(db(),User()));

menu->addItem("Arıza Kaydı", Wt::cpp14::make_unique<ArizaKaydi>(db(),User()));
menu->addItem(WString::fromUTF8("Arıza Kaydı"), Wt::cpp14::make_unique<ArizaKaydi>(db(),User()));

if(this->User().view()[SBLDKeys::Personel::statu].get_utf8().value.to_string() == SBLDKeys::Personel::statuType::baskan ||
this->User().view()[SBLDKeys::Personel::birimi].get_utf8().value.to_string() == "Bilgi İşlem Müdürlüğü" )
Expand All @@ -3586,9 +3586,9 @@ void Giris::Personel::PersonelWidget::initMenu()
{
menu->addItem("Mesajlar", Wt::cpp14::make_unique<BaskanMesajlar>(db(),User()));
menu->addItem("Projeler", Wt::cpp14::make_unique<ProjeWidget>(db(),User()));
menu->addItem("Çalışmalar", Wt::cpp14::make_unique<CalismaWidget>(db(),User()));
menu->addItem(WString::fromUTF8("Çalışmalar"), Wt::cpp14::make_unique<CalismaWidget>(db(),User()));

menu->addItem("Çağrı Merkezi", Wt::cpp14::make_unique<CagriMerkezi>(db(),User()));
menu->addItem(WString::fromUTF8("Çağrı Merkezi"), Wt::cpp14::make_unique<CagriMerkezi>(db(),User()));

// menu->addItem("Muhasebe", Wt::cpp14::make_unique<WText>("Muhasebe Yakın Zamanda Devreye Alınacaktır"));
// menu->addItem("Birimler", Wt::cpp14::make_unique<WText>("Birimler"));
Expand All @@ -3600,9 +3600,9 @@ void Giris::Personel::PersonelWidget::initMenu()
// Add menu items using the default lazy loading policy.
menu->addItem("Gelen Mesajlar", Wt::cpp14::make_unique<PersonelV2::GelenMesajlarWidget>(db(),User()));
menu->addItem("Taleplerim", Wt::cpp14::make_unique<Taleplerim>(db(),User()));
menu->addItem("Evrak Arşivi", Wt::cpp14::make_unique<EvrakArsiv>(db(),User()));
menu->addItem("Başvurularım", Wt::cpp14::make_unique<Basvurularim>(db(),User()));
menu->addItem("Çalışmalar", Wt::cpp14::make_unique<CalismaGirWidget>(db(),User()));
menu->addItem(WString::fromUTF8("Evrak Arşivi"), Wt::cpp14::make_unique<EvrakArsiv>(db(),User()));
menu->addItem(WString::fromUTF8("Başvurularım"), Wt::cpp14::make_unique<Basvurularim>(db(),User()));
menu->addItem(WString::fromUTF8("Çalışmalar"), Wt::cpp14::make_unique<CalismaGirWidget>(db(),User()));
}


Expand Down
1 change: 1 addition & 0 deletions main.cpp
Expand Up @@ -11,6 +11,7 @@ int main(int argc, char *argv[])

QApplication a(argc, argv);

WString::setDefaultEncoding(Wt::CharEncoding::UTF8);

mongocxx::instance ins{};

Expand Down
5 changes: 5 additions & 0 deletions mainapplication.cpp
Expand Up @@ -14,6 +14,8 @@ MainApplication::MainApplication(const Wt::WEnvironment &env)
:WApplication(env)
{

wApp->addMetaHeader(MetaHeaderType::Meta,"Content-Type","text/html; charset=utf-8");

try {
mClient = new mongocxx::client(mongocxx::uri(_url));
} catch (mongocxx::exception& e) {
Expand All @@ -30,6 +32,8 @@ MainApplication::MainApplication(const Wt::WEnvironment &env)





db = mClient->database(SBLDKeys::DB);
Bucket = db.gridfs_bucket();

Expand Down Expand Up @@ -101,6 +105,7 @@ MainApplication::MainApplication(const Wt::WEnvironment &env)
Wt::WApplication::instance()->setBodyClass("introMain");

WApplication::instance()->addMetaHeader("viewport","width=device-width, initial-scale=1.0");
wApp->require("http://www.openlayers.org/api/OpenLayers.js");

this->init();

Expand Down

0 comments on commit 48086d9

Please sign in to comment.